about summary refs log tree commit diff
diff options
context:
space:
mode:
authortamaron <tamaron1203@gmail.com>2022-02-24 00:25:07 +0900
committertamaron <tamaron1203@gmail.com>2022-02-24 00:25:07 +0900
commit31b49b0be8e1153da13be71dcc9d6bff888217e2 (patch)
treeb1e8091ae7573d4722047e8c0cee28cec51cb5a4
parentdb62821c03ed89404891499fb0840b0b7dc78e11 (diff)
downloadrust-31b49b0be8e1153da13be71dcc9d6bff888217e2.tar.gz
rust-31b49b0be8e1153da13be71dcc9d6bff888217e2.zip
fix typo
-rw-r--r--clippy_lints/src/eta_reduction.rs3
1 files changed, 1 insertions, 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;
         }