Skip to content

Commit f5fd9de

Browse files
committed
chore
1 parent b13704a commit f5fd9de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/loops/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ pub(super) fn make_iterator_snippet(cx: &LateContext<'_>, arg: &Expr<'_>, applic
335335
let arg_ty = cx.typeck_results().expr_ty_adjusted(arg);
336336
match &arg_ty.kind() {
337337
ty::Ref(_, inner_ty, mutbl) if has_iter_method(cx, inner_ty).is_some() => {
338-
let meth_name = match mutbl {
338+
let method_name = match mutbl {
339339
Mutability::Mut => "iter_mut",
340340
Mutability::Not => "iter",
341341
};
@@ -346,7 +346,7 @@ pub(super) fn make_iterator_snippet(cx: &LateContext<'_>, arg: &Expr<'_>, applic
346346
format!(
347347
"{}.{}()",
348348
sugg::Sugg::hir_with_applicability(cx, caller, "_", applic_ref).maybe_par(),
349-
meth_name,
349+
method_name,
350350
)
351351
},
352352
_ => format!(

0 commit comments

Comments
 (0)