mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
clippy: add from_iter_instead_of_collect warn (#11666)
This commit is contained in:
@ -206,10 +206,12 @@ mod implementations {
|
||||
self.base_fee = Some(base_fee);
|
||||
|
||||
let drained = self.inner.drain();
|
||||
self.inner = BinaryHeap::from_iter(drained.map(|mock| {
|
||||
let priority = mock.tx.effective_tip_per_gas(base_fee).expect("set");
|
||||
MockTransactionWithPriority { tx: mock.tx, priority }
|
||||
}));
|
||||
self.inner = drained
|
||||
.map(|mock| {
|
||||
let priority = mock.tx.effective_tip_per_gas(base_fee).expect("set");
|
||||
MockTransactionWithPriority { tx: mock.tx, priority }
|
||||
})
|
||||
.collect();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -490,7 +490,7 @@ impl MaintainedPoolState {
|
||||
}
|
||||
}
|
||||
|
||||
/// A unique `ChangedAccount` identified by its address that can be used for deduplication
|
||||
/// A unique [`ChangedAccount`] identified by its address that can be used for deduplication
|
||||
#[derive(Eq)]
|
||||
struct ChangedAccountEntry(ChangedAccount);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user