From b0861b99a1f60f889ebf86344506b577ff49c668 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 1 Apr 2023 12:06:18 -0700 Subject: [PATCH] Ignore range_plus_one pedantic clippy lint error: an inclusive range would be more readable --> src/expr.rs:2743:26 | 2743 | .subspan(part_end..part_end + 1) | ^^^^^^^^^^^^^^^^^^^^^^ help: use: `part_end..=part_end` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#range_plus_one = note: `-D clippy::range-plus-one` implied by `-D clippy::pedantic` --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index d4f3b2eeb2..18e9411d17 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -281,6 +281,7 @@ clippy::needless_doctest_main, clippy::needless_pass_by_value, clippy::never_loop, + clippy::range_plus_one, clippy::redundant_else, clippy::return_self_not_must_use, clippy::similar_names,