Skip to content

Commit dd7e074

Browse files
committed
Remove unneeded clone
clippy emits: warning: using `clone` on type `blockdata::transaction::OutPoint` which implements the `Copy` trait Remove unneeded call to `clone`.
1 parent 0c4b141 commit dd7e074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blockdata/transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ impl Transaction {
631631
if let Some(output) = spent(&input.previous_output) {
632632
output.script_pubkey.verify_with_flags(idx, crate::Amount::from_sat(output.value), tx.as_slice(), flags)?;
633633
} else {
634-
return Err(script::Error::UnknownSpentOutput(input.previous_output.clone()));
634+
return Err(script::Error::UnknownSpentOutput(input.previous_output));
635635
}
636636
}
637637
Ok(())

0 commit comments

Comments
 (0)