From ac7df092006ab9e4497f0f3284d76fd2b90c36df Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Thu, 8 Apr 2021 11:39:38 -0700 Subject: [PATCH] Remove needlessly taken reference of both operands, clippy warning https://rust-lang.github.io/rust-clippy/master/index.html#op_ref --- src/descriptor/policy.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/descriptor/policy.rs b/src/descriptor/policy.rs index 14e76e7f..e05134f9 100644 --- a/src/descriptor/policy.rs +++ b/src/descriptor/policy.rs @@ -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!(