Skip to content

Commit da2795f

Browse files
Rename ast::StmtKind::Local into ast::StmtKind::Let
1 parent 97f2ade commit da2795f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/ast_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ pub fn eq_block(l: &Block, r: &Block) -> bool {
267267
pub fn eq_stmt(l: &Stmt, r: &Stmt) -> bool {
268268
use StmtKind::*;
269269
match (&l.kind, &r.kind) {
270-
(Local(l), Local(r)) => {
270+
(Let(l), Let(r)) => {
271271
eq_pat(&l.pat, &r.pat)
272272
&& both(&l.ty, &r.ty, |l, r| eq_ty(l, r))
273273
&& eq_local_kind(&l.kind, &r.kind)

0 commit comments

Comments
 (0)