From f5fd9ded000d7968b6641d2b17f4eca53a4a8f67 Mon Sep 17 00:00:00 2001 From: tamaron Date: Wed, 2 Feb 2022 11:25:15 +0900 Subject: [PATCH] chore --- clippy_lints/src/loops/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/loops/utils.rs b/clippy_lints/src/loops/utils.rs index 9082ab94374..b6c746d3e39 100644 --- a/clippy_lints/src/loops/utils.rs +++ b/clippy_lints/src/loops/utils.rs @@ -335,7 +335,7 @@ pub(super) fn make_iterator_snippet(cx: &LateContext<'_>, arg: &Expr<'_>, applic let arg_ty = cx.typeck_results().expr_ty_adjusted(arg); match &arg_ty.kind() { ty::Ref(_, inner_ty, mutbl) if has_iter_method(cx, inner_ty).is_some() => { - let meth_name = match mutbl { + let method_name = match mutbl { Mutability::Mut => "iter_mut", Mutability::Not => "iter", }; @@ -346,7 +346,7 @@ pub(super) fn make_iterator_snippet(cx: &LateContext<'_>, arg: &Expr<'_>, applic format!( "{}.{}()", sugg::Sugg::hir_with_applicability(cx, caller, "_", applic_ref).maybe_par(), - meth_name, + method_name, ) }, _ => format!(