Skip to content

Commit d0650ae

Browse files
committed
Update for latest master
1 parent 06ec3d3 commit d0650ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/utils/higher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub fn for_loop(expr: &hir::Expr) -> Option<(&hir::Pat, &hir::Expr, &hir::Expr)>
129129
iterargs.len() == 1 && arms.len() == 1 && arms[0].guard.is_none(),
130130
let hir::ExprLoop(ref block, _, _) = arms[0].body.node,
131131
block.expr.is_none(),
132-
let [ ref let_stmt, ref body ] = *block.stmts,
132+
let [ _, _, ref let_stmt, ref body ] = *block.stmts,
133133
let hir::StmtDecl(ref decl, _) = let_stmt.node,
134134
let hir::DeclLocal(ref decl) = decl.node,
135135
let hir::StmtExpr(ref expr, _) = body.node,

0 commit comments

Comments
 (0)