Remove unneeded clone

clippy emits:

 warning: using `clone` on type `blockdata::transaction::OutPoint` which
 implements the `Copy` trait

Remove unneeded call to `clone`.
This commit is contained in:
Tobin C. Harding 2022-06-23 13:57:31 +10:00
parent eccd401fc4
commit 67ed8f673e
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ impl Transaction {
if let Some(output) = spent(&input.previous_output) { 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)?; output.script_pubkey.verify_with_flags(idx, crate::Amount::from_sat(output.value), tx.as_slice(), flags)?;
} else { } else {
return Err(script::Error::UnknownSpentOutput(input.previous_output.clone())); return Err(script::Error::UnknownSpentOutput(input.previous_output));
} }
} }
Ok(()) Ok(())