Remove needlessly taken reference of both operands, clippy warning

https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
This commit is contained in:
Steve Myers 2021-04-08 11:39:38 -07:00
parent 192965413c
commit ac7df09200
No known key found for this signature in database
GPG Key ID: 8105A46B22C2D051

View File

@ -1023,8 +1023,8 @@ mod test {
assert!( assert!(
matches!(&policy.item, Multisig { keys, threshold } if threshold == &2usize matches!(&policy.item, Multisig { keys, threshold } if threshold == &2usize
&& &keys[0].fingerprint.unwrap() == &fingerprint0 && keys[0].fingerprint.unwrap() == fingerprint0
&& &keys[1].fingerprint.unwrap() == &fingerprint1) && keys[1].fingerprint.unwrap() == fingerprint1)
); );
// TODO should this be "Satisfaction::None" since we have no prv keys? // TODO should this be "Satisfaction::None" since we have no prv keys?
// TODO should items and conditions not be empty? // TODO should items and conditions not be empty?
@ -1054,8 +1054,8 @@ mod test {
.unwrap(); .unwrap();
assert!( assert!(
matches!(&policy.item, Multisig { keys, threshold } if threshold == &2usize matches!(&policy.item, Multisig { keys, threshold } if threshold == &2usize
&& &keys[0].fingerprint.unwrap() == &fingerprint0 && keys[0].fingerprint.unwrap() == fingerprint0
&& &keys[1].fingerprint.unwrap() == &fingerprint1) && keys[1].fingerprint.unwrap() == fingerprint1)
); );
assert!( assert!(