Skip to content

Commit

Permalink
ast: Remove some indirection layers from values in key-value attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Jan 9, 2021
1 parent 053afe4 commit 9e45a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/utils/ast_utils.rs
Expand Up @@ -556,7 +556,7 @@ pub fn eq_mac_args(l: &MacArgs, r: &MacArgs) -> bool {
match (l, r) {
(Empty, Empty) => true,
(Delimited(_, ld, lts), Delimited(_, rd, rts)) => ld == rd && lts.eq_unspanned(rts),
(Eq(_, lts), Eq(_, rts)) => lts.eq_unspanned(rts),
(Eq(_, lt), Eq(_, rt)) => lt.kind == rt.kind,
_ => false,
}
}

0 comments on commit 9e45a23

Please sign in to comment.