Skip to content

Commit 9e45a23

Browse files
committed
ast: Remove some indirection layers from values in key-value attributes
1 parent 053afe4 commit 9e45a23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/utils/ast_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ pub fn eq_mac_args(l: &MacArgs, r: &MacArgs) -> bool {
556556
match (l, r) {
557557
(Empty, Empty) => true,
558558
(Delimited(_, ld, lts), Delimited(_, rd, rts)) => ld == rd && lts.eq_unspanned(rts),
559-
(Eq(_, lts), Eq(_, rts)) => lts.eq_unspanned(rts),
559+
(Eq(_, lt), Eq(_, rt)) => lt.kind == rt.kind,
560560
_ => false,
561561
}
562562
}

0 commit comments

Comments
 (0)