]> Untitled Git - bdk/commitdiff
Remove needlessly taken reference of both operands, clippy warning
authorSteve Myers <steve@notmandatory.org>
Thu, 8 Apr 2021 18:39:38 +0000 (11:39 -0700)
committerSteve Myers <steve@notmandatory.org>
Thu, 8 Apr 2021 18:39:38 +0000 (11:39 -0700)
https://rust-lang.github.io/rust-clippy/master/index.html#op_ref

src/descriptor/policy.rs

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