Remove redundant calls to clone

No need to clone copy types, found by clippy.
This commit is contained in:
Tobin Harding
2020-12-23 13:42:52 +11:00
parent 3a0a1e6d4a
commit 0e99d02fbe
4 changed files with 10 additions and 13 deletions

View File

@@ -804,7 +804,7 @@ mod test {
.coin_select(
&database,
vec![],
utxos.clone(),
utxos,
FeeRate::from_sat_per_vb(1.0),
99932, // first utxo's effective value
0.0,

View File

@@ -678,7 +678,7 @@ mod test {
use std::str::FromStr;
let original_tx = ordering_test_tx!();
let mut tx = original_tx.clone();
let mut tx = original_tx;
TxOrdering::BIP69Lexicographic.sort_tx(&mut tx);