]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/clippy_lints/src/redundant_closure_call.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / src / tools / clippy / clippy_lints / src / redundant_closure_call.rs
index 65ed798867d19f7b9ccd6400159f74bc01da223d..f5a93cebab8ca65707c1151a85346c34081a071c 100644 (file)
@@ -69,7 +69,7 @@ impl EarlyLintPass for RedundantClosureCall {
         if_chain! {
             if let ast::ExprKind::Call(ref paren, _) = expr.kind;
             if let ast::ExprKind::Paren(ref closure) = paren.kind;
-            if let ast::ExprKind::Closure(_, _, _, ref decl, ref block, _) = closure.kind;
+            if let ast::ExprKind::Closure(_, _, _, _, ref decl, ref block, _) = closure.kind;
             then {
                 let mut visitor = ReturnVisitor::new();
                 visitor.visit_expr(block);