Skip to content

Commit 2a530dc

Browse files
committed
Fix clippy code
1 parent 91d2ce3 commit 2a530dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/suspicious_operation_groupings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ fn ident_difference_expr_with_base_location(
582582
| (Block(_, _), Block(_, _))
583583
| (Closure(_), Closure(_))
584584
| (Match(_, _), Match(_, _))
585-
| (Loop(_, _), Loop(_, _))
585+
| (Loop(_, _, _), Loop(_, _, _))
586586
| (ForLoop(_, _, _, _), ForLoop(_, _, _, _))
587587
| (While(_, _, _), While(_, _, _))
588588
| (If(_, _, _), If(_, _, _))

clippy_utils/src/ast_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ pub fn eq_expr(l: &Expr, r: &Expr) -> bool {
171171
(ForLoop(lp, li, lt, ll), ForLoop(rp, ri, rt, rl)) => {
172172
eq_label(ll, rl) && eq_pat(lp, rp) && eq_expr(li, ri) && eq_block(lt, rt)
173173
},
174-
(Loop(lt, ll), Loop(rt, rl)) => eq_label(ll, rl) && eq_block(lt, rt),
174+
(Loop(lt, ll, _), Loop(rt, rl, _)) => eq_label(ll, rl) && eq_block(lt, rt),
175175
(Block(lb, ll), Block(rb, rl)) => eq_label(ll, rl) && eq_block(lb, rb),
176176
(TryBlock(l), TryBlock(r)) => eq_block(l, r),
177177
(Yield(l), Yield(r)) | (Ret(l), Ret(r)) => eq_expr_opt(l, r),

0 commit comments

Comments
 (0)