Fix cargo clippy warnings

Disabled warnings for nursery/tmp_plan as it's going to be replaced
anyways
This commit is contained in:
Daniela Brozzoni
2023-03-02 19:08:33 +01:00
parent 1805bd35c0
commit c61b3604e1
26 changed files with 139 additions and 153 deletions

View File

@@ -128,10 +128,10 @@ fn insert_tx_graph_keeps_track_of_spend() {
let _ = graph1.insert_tx(tx2.clone());
let _ = graph2.insert_tx(tx2.clone());
let _ = graph2.insert_tx(tx1.clone());
let _ = graph2.insert_tx(tx1);
assert_eq!(
&*graph1.outspends(op),
graph1.outspends(op),
&iter::once(tx2.txid()).collect::<HashSet<_>>()
);
assert_eq!(graph2.outspends(op), graph1.outspends(op));
@@ -173,7 +173,7 @@ fn insert_tx_displaces_txouts() {
vout: 0,
},
TxOut {
value: 1337_000,
value: 1_337_000,
script_pubkey: Script::default(),
},
);
@@ -231,7 +231,7 @@ fn insert_txout_does_not_displace_tx() {
vout: 0,
},
TxOut {
value: 1337_000,
value: 1_337_000,
script_pubkey: Script::default(),
},
);