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:
parent
192965413c
commit
ac7df09200
@ -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!(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user