Skip to content

Commit 81f77a4

Browse files
committed
range-zip-with-len: make lint adhere to lint message convention
1 parent 3e1e0c9 commit 81f77a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/ranges.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl<'tcx> LateLintPass<'tcx> for Ranges {
160160
span_lint(cx,
161161
RANGE_ZIP_WITH_LEN,
162162
expr.span,
163-
&format!("It is more idiomatic to use `{}.iter().enumerate()`",
163+
&format!("it is more idiomatic to use `{}.iter().enumerate()`",
164164
snippet(cx, iter_args[0].span, "_")));
165165
}
166166
}

tests/ui/range.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: It is more idiomatic to use `v1.iter().enumerate()`
1+
error: it is more idiomatic to use `v1.iter().enumerate()`
22
--> $DIR/range.rs:5:14
33
|
44
LL | let _x = v1.iter().zip(0..v1.len());

0 commit comments

Comments
 (0)