From: Steve Myers Date: Thu, 8 Apr 2021 18:41:58 +0000 (-0700) Subject: Remove redundant clone, clippy warning X-Git-Tag: v0.7.0~18^2~7 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/%22example_cli/enum.Commands.html/enum.IterError.html?a=commitdiff_plain;h=b68ec050e20f28810ee4622082021a166276bbe2;p=bdk Remove redundant clone, clippy warning https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone --- diff --git a/src/descriptor/policy.rs b/src/descriptor/policy.rs index e05134f9..c8df81f5 100644 --- a/src/descriptor/policy.rs +++ b/src/descriptor/policy.rs @@ -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)