mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: clippy (#10650)
This commit is contained in:
@ -1235,7 +1235,7 @@ impl<T: PoolTransaction> AllTransactions<T> {
|
||||
pub(crate) fn descendant_txs_exclusive<'a, 'b: 'a>(
|
||||
&'a self,
|
||||
id: &'b TransactionId,
|
||||
) -> impl Iterator<Item = (&'a TransactionId, &'a PoolInternalTransaction<T>)> + '_ {
|
||||
) -> impl Iterator<Item = (&'a TransactionId, &'a PoolInternalTransaction<T>)> + 'a {
|
||||
self.txs.range((Excluded(id), Unbounded)).take_while(|(other, _)| id.sender == other.sender)
|
||||
}
|
||||
|
||||
@ -1246,7 +1246,7 @@ impl<T: PoolTransaction> AllTransactions<T> {
|
||||
pub(crate) fn descendant_txs_inclusive<'a, 'b: 'a>(
|
||||
&'a self,
|
||||
id: &'b TransactionId,
|
||||
) -> impl Iterator<Item = (&'a TransactionId, &'a PoolInternalTransaction<T>)> + '_ {
|
||||
) -> impl Iterator<Item = (&'a TransactionId, &'a PoolInternalTransaction<T>)> + 'a {
|
||||
self.txs.range(id..).take_while(|(other, _)| id.sender == other.sender)
|
||||
}
|
||||
|
||||
@ -1257,7 +1257,7 @@ impl<T: PoolTransaction> AllTransactions<T> {
|
||||
pub(crate) fn descendant_txs_mut<'a, 'b: 'a>(
|
||||
&'a mut self,
|
||||
id: &'b TransactionId,
|
||||
) -> impl Iterator<Item = (&'a TransactionId, &'a mut PoolInternalTransaction<T>)> + '_ {
|
||||
) -> impl Iterator<Item = (&'a TransactionId, &'a mut PoolInternalTransaction<T>)> + 'a {
|
||||
self.txs.range_mut(id..).take_while(|(other, _)| id.sender == other.sender)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user