diff options
| author | y21 <30553356+y21@users.noreply.github.com> | 2024-03-23 06:52:11 +0100 |
|---|---|---|
| committer | y21 <30553356+y21@users.noreply.github.com> | 2024-04-01 15:04:45 +0200 |
| commit | 91f514cc8360b369a7fe5f6108aae025b22a38db (patch) | |
| tree | 7826cfc3453cc41e138defdbd3c7fc75b2d3bbb1 /clippy_lints/src/loops/needless_range_loop.rs | |
| parent | bd4d4561386c5b1219d8e8830869d39dea8149ed (diff) | |
fix fallout from previous commit
Diffstat (limited to 'clippy_lints/src/loops/needless_range_loop.rs')
| -rw-r--r-- | clippy_lints/src/loops/needless_range_loop.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/loops/needless_range_loop.rs b/clippy_lints/src/loops/needless_range_loop.rs index 04340d33330..de7ec81bc01 100644 --- a/clippy_lints/src/loops/needless_range_loop.rs +++ b/clippy_lints/src/loops/needless_range_loop.rs @@ -143,7 +143,7 @@ pub(super) fn check<'tcx>( cx, NEEDLESS_RANGE_LOOP, arg.span, - &format!("the loop variable `{}` is used to index `{indexed}`", ident.name), + format!("the loop variable `{}` is used to index `{indexed}`", ident.name), |diag| { multispan_sugg( diag, @@ -169,7 +169,7 @@ pub(super) fn check<'tcx>( cx, NEEDLESS_RANGE_LOOP, arg.span, - &format!("the loop variable `{}` is only used to index `{indexed}`", ident.name), + format!("the loop variable `{}` is only used to index `{indexed}`", ident.name), |diag| { multispan_sugg( diag, |
