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| {
multispan_sugg(
diag,
"consider using an iterator and enumerate",
"consider using an iterator and enumerate()",
vec![
(pat.span, format!("({}, <item>)", ident.name)),
(