Skip to content

Commit ee19021

Browse files
committed
Fix clippy
1 parent 090b167 commit ee19021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/clippy/clippy_lints/src/utils/ast_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ pub fn eq_stmt(l: &Stmt, r: &Stmt) -> bool {
191191
(Item(l), Item(r)) => eq_item(l, r, eq_item_kind),
192192
(Expr(l), Expr(r)) | (Semi(l), Semi(r)) => eq_expr(l, r),
193193
(Empty, Empty) => true,
194-
(MacCall(l), MacCall(r)) => l.1 == r.1 && eq_mac_call(&l.0, &r.0) && over(&l.2, &r.2, |l, r| eq_attr(l, r)),
194+
(MacCall(l), MacCall(r)) => l.style == r.style && eq_mac_call(&l.mac, &r.mac) && over(&l.attrs, &r.attrs, |l, r| eq_attr(l, r)),
195195
_ => false,
196196
}
197197
}

0 commit comments

Comments
 (0)