Skip to content

Commit a4c8c15

Browse files
committed
fix: format("{}" => .to_string()
1 parent a2d291b commit a4c8c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/loops/unused_enumerate_index.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, pat: &'tcx Pat<'_>, arg: &'tcx
5858
"remove the `.enumerate()` call",
5959
vec![
6060
(pat_span, snippet(cx, new_pat_span, "value").into_owned()),
61-
(arg_span, format!("{}", base_iter)),
61+
(arg_span, base_iter.to_string()),
6262
],
6363
);
6464
},

0 commit comments

Comments
 (0)