From 67ed8f673e9259459e6145514934423a8aa103ff Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 23 Jun 2022 13:57:31 +1000 Subject: [PATCH] Remove unneeded clone clippy emits: warning: using `clone` on type `blockdata::transaction::OutPoint` which implements the `Copy` trait Remove unneeded call to `clone`. --- src/blockdata/transaction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockdata/transaction.rs b/src/blockdata/transaction.rs index 90b96bcf..e397ef16 100644 --- a/src/blockdata/transaction.rs +++ b/src/blockdata/transaction.rs @@ -631,7 +631,7 @@ impl Transaction { if let Some(output) = spent(&input.previous_output) { output.script_pubkey.verify_with_flags(idx, crate::Amount::from_sat(output.value), tx.as_slice(), flags)?; } else { - return Err(script::Error::UnknownSpentOutput(input.previous_output.clone())); + return Err(script::Error::UnknownSpentOutput(input.previous_output)); } } Ok(())