Skip to content

Commit 31b49b0

Browse files
committed
fix typo
1 parent db62821 commit 31b49b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clippy_lints/src/eta_reduction.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ fn check_inputs(cx: &LateContext<'_>, params: &[Param<'_>], call_args: &[Expr<'_
176176
PatKind::Binding(_, id, ..) if path_to_local_id(arg, id) => {},
177177
_ => return false,
178178
}
179-
// checks that parameters are not bound as `ref`
180-
//dbg!(binding_modes.get(param.pat.hir_id));
179+
// checks that parameters are not bound as `ref` or `ref mut`
181180
if let Some(BindingMode::BindByReference(_)) = binding_modes.get(param.pat.hir_id) {
182181
return false;
183182
}

0 commit comments

Comments
 (0)