From d0650ae144273eb991aabb49dbd96bc6dced3d02 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 28 Jun 2017 11:02:27 +0200 Subject: [PATCH] Update for latest master --- clippy_lints/src/utils/higher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/utils/higher.rs b/clippy_lints/src/utils/higher.rs index 7c7b3b57a114..d25f8e7df2b2 100644 --- a/clippy_lints/src/utils/higher.rs +++ b/clippy_lints/src/utils/higher.rs @@ -129,7 +129,7 @@ pub fn for_loop(expr: &hir::Expr) -> Option<(&hir::Pat, &hir::Expr, &hir::Expr)> iterargs.len() == 1 && arms.len() == 1 && arms[0].guard.is_none(), let hir::ExprLoop(ref block, _, _) = arms[0].body.node, block.expr.is_none(), - let [ ref let_stmt, ref body ] = *block.stmts, + let [ _, _, ref let_stmt, ref body ] = *block.stmts, let hir::StmtDecl(ref decl, _) = let_stmt.node, let hir::DeclLocal(ref decl) = decl.node, let hir::StmtExpr(ref expr, _) = body.node,