From 7b84a97c3e941fe2ed1f9afcd36f9d79601a6d96 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Sat, 11 Jun 2022 21:25:25 +0200 Subject: Make `ExprKind::Closure` a struct variant. --- clippy_utils/src/usage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clippy_utils/src/usage.rs') diff --git a/clippy_utils/src/usage.rs b/clippy_utils/src/usage.rs index 9819778540c..3af5dfb62f9 100644 --- a/clippy_utils/src/usage.rs +++ b/clippy_utils/src/usage.rs @@ -185,7 +185,7 @@ pub fn local_used_after_expr(cx: &LateContext<'_>, local_id: HirId, after: &Expr matches!( node, Node::Expr(Expr { - kind: ExprKind::Loop(..) | ExprKind::Closure(..), + kind: ExprKind::Loop(..) | ExprKind::Closure { .. }, .. }) ) -- cgit 1.4.1-3-g733a5