We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0d1002 commit a6611deCopy full SHA for a6611de
clippy_lints/src/methods/unnecessary_lazy_eval.rs
@@ -35,7 +35,8 @@ pub(super) fn lint<'tcx>(
35
let applicability = if body
36
.params
37
.iter()
38
- .all(|param| matches!(param.pat.kind, hir::PatKind::Wild))
+ // bindings are checked to be unused above
39
+ .all(|param| matches!(param.pat.kind, hir::PatKind::Binding(..) | hir::PatKind::Wild))
40
{
41
Applicability::MachineApplicable
42
} else {
0 commit comments