diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-03-14 11:25:05 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-03-14 12:42:04 +0100 |
| commit | da2795fe487832e27eb92f9601877a6eba80adea (patch) | |
| tree | f0c6ec2ec48427284ba68d18c71d972102c9b80f | |
| parent | 97f2ade8e647e2842695c0dda30d9c72fb7f7c07 (diff) | |
| download | rust-da2795fe487832e27eb92f9601877a6eba80adea.tar.gz rust-da2795fe487832e27eb92f9601877a6eba80adea.zip | |
Rename `ast::StmtKind::Local` into `ast::StmtKind::Let`
| -rw-r--r-- | clippy_utils/src/ast_utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/ast_utils.rs b/clippy_utils/src/ast_utils.rs index 3b3939da7b6..3874c1169e4 100644 --- a/clippy_utils/src/ast_utils.rs +++ b/clippy_utils/src/ast_utils.rs @@ -267,7 +267,7 @@ pub fn eq_block(l: &Block, r: &Block) -> bool { pub fn eq_stmt(l: &Stmt, r: &Stmt) -> bool { use StmtKind::*; match (&l.kind, &r.kind) { - (Local(l), Local(r)) => { + (Let(l), Let(r)) => { eq_pat(&l.pat, &r.pat) && both(&l.ty, &r.ty, |l, r| eq_ty(l, r)) && eq_local_kind(&l.kind, &r.kind) |
