From: Steve Myers Date: Thu, 8 Apr 2021 18:39:38 +0000 (-0700) Subject: Remove needlessly taken reference of both operands, clippy warning X-Git-Tag: v0.7.0~18^2~8 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/struct.SegwitCodeLengthError.html?a=commitdiff_plain;h=ac7df092006ab9e4497f0f3284d76fd2b90c36df;p=bdk Remove needlessly taken reference of both operands, clippy warning https://rust-lang.github.io/rust-clippy/master/index.html#op_ref --- 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!(