Skip to content

Commit b2b1543

Browse files
committed
another one. Somehow I failed to correctly commit
1 parent 0b136d3 commit b2b1543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/let_if_seq.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl LateLintPass for LetIfSeq {
6565
let Some(expr) = it.peek(),
6666
let hir::StmtDecl(ref decl, _) = stmt.node,
6767
let hir::DeclLocal(ref decl) = decl.node,
68-
let hir::PatKind::Ident(mode, ref name, None) = decl.pat.node,
68+
let hir::PatKind::Binding(mode, ref name, None) = decl.pat.node,
6969
let Some(def) = cx.tcx.def_map.borrow().get(&decl.pat.id),
7070
let hir::StmtExpr(ref if_, _) = expr.node,
7171
let hir::ExprIf(ref cond, ref then, ref else_) = if_.node,

0 commit comments

Comments
 (0)