We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2d291b commit a4c8c15Copy full SHA for a4c8c15
clippy_lints/src/loops/unused_enumerate_index.rs
@@ -58,7 +58,7 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, pat: &'tcx Pat<'_>, arg: &'tcx
58
"remove the `.enumerate()` call",
59
vec![
60
(pat_span, snippet(cx, new_pat_span, "value").into_owned()),
61
- (arg_span, format!("{}", base_iter)),
+ (arg_span, base_iter.to_string()),
62
],
63
);
64
},
0 commit comments