mirror of
https://github.com/romanz/electrs.git
synced 2025-02-24 15:02:21 +01:00
Remove unneeded into_iter()
This commit is contained in:
parent
c754485320
commit
11d703f545
1 changed files with 16 additions and 20 deletions
|
@ -280,10 +280,7 @@ impl Status {
|
||||||
.par_iter()
|
.par_iter()
|
||||||
.flat_map_iter(|outpoint| index.filter_by_spending(*outpoint))
|
.flat_map_iter(|outpoint| index.filter_by_spending(*outpoint))
|
||||||
.collect();
|
.collect();
|
||||||
self.for_new_blocks(
|
self.for_new_blocks(spending_blockhashes, daemon, |blockhash, block| {
|
||||||
spending_blockhashes.into_iter(),
|
|
||||||
daemon,
|
|
||||||
|blockhash, block| {
|
|
||||||
let txids: Vec<Txid> = block.txdata.iter().map(|tx| tx.txid()).collect();
|
let txids: Vec<Txid> = block.txdata.iter().map(|tx| tx.txid()).collect();
|
||||||
for (pos, (tx, txid)) in block.txdata.into_iter().zip(txids.iter()).enumerate() {
|
for (pos, (tx, txid)) in block.txdata.into_iter().zip(txids.iter()).enumerate() {
|
||||||
let spent_outpoints = filter_inputs(&tx, &outpoints);
|
let spent_outpoints = filter_inputs(&tx, &outpoints);
|
||||||
|
@ -299,8 +296,7 @@ impl Status {
|
||||||
.or_default()
|
.or_default()
|
||||||
.spent = spent_outpoints;
|
.spent = spent_outpoints;
|
||||||
}
|
}
|
||||||
},
|
})?;
|
||||||
)?;
|
|
||||||
|
|
||||||
Ok(result
|
Ok(result
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
|
Loading…
Add table
Reference in a new issue