From 31b49b0be8e1153da13be71dcc9d6bff888217e2 Mon Sep 17 00:00:00 2001 From: tamaron Date: Thu, 24 Feb 2022 00:25:07 +0900 Subject: [PATCH] fix typo --- clippy_lints/src/eta_reduction.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clippy_lints/src/eta_reduction.rs b/clippy_lints/src/eta_reduction.rs index 687e56e57f4..d23c0c225e1 100644 --- a/clippy_lints/src/eta_reduction.rs +++ b/clippy_lints/src/eta_reduction.rs @@ -176,8 +176,7 @@ fn check_inputs(cx: &LateContext<'_>, params: &[Param<'_>], call_args: &[Expr<'_ PatKind::Binding(_, id, ..) if path_to_local_id(arg, id) => {}, _ => return false, } - // checks that parameters are not bound as `ref` - //dbg!(binding_modes.get(param.pat.hir_id)); + // checks that parameters are not bound as `ref` or `ref mut` if let Some(BindingMode::BindByReference(_)) = binding_modes.get(param.pat.hir_id) { return false; }