chore: add elided lifetime to impl Iterator (#14481)

This commit is contained in:
Matthias Seitz
2025-02-13 19:40:38 +01:00
committed by GitHub
parent 95b14f851b
commit b71934237d

View File

@ -295,7 +295,7 @@ impl<B: Block> RecoveredBlock<B> {
#[inline]
pub fn transactions_recovered(
&self,
) -> impl Iterator<Item = Recovered<&'_ <B::Body as BlockBody>::Transaction>> {
) -> impl Iterator<Item = Recovered<&'_ <B::Body as BlockBody>::Transaction>> + '_ {
self.transactions_with_sender().map(|(sender, tx)| Recovered::new_unchecked(tx, *sender))
}