range-zip-with-len: make lint adhere to lint message convention
This commit is contained in:
parent
3e1e0c9bdb
commit
81f77a411e
@ -160,7 +160,7 @@ impl<'tcx> LateLintPass<'tcx> for Ranges {
|
||||
span_lint(cx,
|
||||
RANGE_ZIP_WITH_LEN,
|
||||
expr.span,
|
||||
&format!("It is more idiomatic to use `{}.iter().enumerate()`",
|
||||
&format!("it is more idiomatic to use `{}.iter().enumerate()`",
|
||||
snippet(cx, iter_args[0].span, "_")));
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
error: It is more idiomatic to use `v1.iter().enumerate()`
|
||||
error: it is more idiomatic to use `v1.iter().enumerate()`
|
||||
--> $DIR/range.rs:5:14
|
||||
|
|
||||
LL | let _x = v1.iter().zip(0..v1.len());
|
||||
|
Loading…
Reference in New Issue
Block a user