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.
2 parents ea2c61b + 762aff2 commit 0b136d3Copy full SHA for 0b136d3
clippy_lints/src/let_if_seq.rs
@@ -65,7 +65,7 @@ impl LateLintPass for LetIfSeq {
65
let Some(expr) = it.peek(),
66
let hir::StmtDecl(ref decl, _) = stmt.node,
67
let hir::DeclLocal(ref decl) = decl.node,
68
- let hir::PatKind::Binding(mode, ref name, None) = decl.pat.node,
+ let hir::PatKind::Ident(mode, ref name, None) = decl.pat.node,
69
let Some(def) = cx.tcx.def_map.borrow().get(&decl.pat.id),
70
let hir::StmtExpr(ref if_, _) = expr.node,
71
let hir::ExprIf(ref cond, ref then, ref else_) = if_.node,
0 commit comments