]> Untitled Git - bdk/commitdiff
Remove redundant clone, clippy warning
authorSteve Myers <steve@notmandatory.org>
Thu, 8 Apr 2021 18:41:58 +0000 (11:41 -0700)
committerSteve Myers <steve@notmandatory.org>
Thu, 8 Apr 2021 18:41:58 +0000 (11:41 -0700)
https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone

src/descriptor/policy.rs

index e05134f92635d7bf1f7d98572862f58b9383387c..c8df81f57a4c0d80c06153fea660de0e64e072b6 100644 (file)
@@ -1429,7 +1429,7 @@ mod test {
             )
         );
 
-        let mut policy_clone = original_policy.clone();
+        let mut policy_clone = original_policy;
         let psbt: PSBT = deserialize(&base64::decode(ALICE_BOB_SIGNED_PSBT).unwrap()).unwrap();
         policy_clone
             .fill_satisfactions(&psbt, &wallet_desc, &secp)