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:
parent
eccd401fc4
commit
67ed8f673e
|
@ -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(())
|
||||
|
|
Loading…
Reference in New Issue