Update clippy_lints/src/loops/needless_range_loop.rs

Co-authored-by: Manish Goregaokar <manishsmail@gmail.com>
This commit is contained in:
Tyler Weaver 2023-01-30 09:59:26 -07:00 committed by GitHub
parent 4d266d31de
commit 3b225e3a96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,7 +149,7 @@ pub(super) fn check<'tcx>(
|diag| { |diag| {
multispan_sugg( multispan_sugg(
diag, diag,
"consider using an iterator and enumerate", "consider using an iterator and enumerate()",
vec![ vec![
(pat.span, format!("({}, <item>)", ident.name)), (pat.span, format!("({}, <item>)", ident.name)),
( (