From 3b225e3a96abcf8eab678691b244e5cdda4c6ea5 Mon Sep 17 00:00:00 2001 From: Tyler Weaver Date: Mon, 30 Jan 2023 09:59:26 -0700 Subject: [PATCH] Update clippy_lints/src/loops/needless_range_loop.rs Co-authored-by: Manish Goregaokar --- clippy_lints/src/loops/needless_range_loop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/loops/needless_range_loop.rs b/clippy_lints/src/loops/needless_range_loop.rs index 1336b80d8..d060b6ade 100644 --- a/clippy_lints/src/loops/needless_range_loop.rs +++ b/clippy_lints/src/loops/needless_range_loop.rs @@ -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!("({}, )", ident.name)), (