diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-06-11 21:25:25 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-06-12 00:16:27 +0200 |
| commit | 7b84a97c3e941fe2ed1f9afcd36f9d79601a6d96 (patch) | |
| tree | 26fcc2f623fd43948db6829189cd3af1f5d581f8 /clippy_utils/src/usage.rs | |
| parent | e34621c24ee3e5dd9b060d04633ec4ee5f47fe40 (diff) | |
| download | rust-7b84a97c3e941fe2ed1f9afcd36f9d79601a6d96.tar.gz rust-7b84a97c3e941fe2ed1f9afcd36f9d79601a6d96.zip | |
Make `ExprKind::Closure` a struct variant.
Diffstat (limited to 'clippy_utils/src/usage.rs')
| -rw-r--r-- | clippy_utils/src/usage.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { .. }, .. }) ) |
