fix: add lifetime (#14460)

This commit is contained in:
Matthias Seitz
2025-02-13 00:21:16 +01:00
committed by GitHub
parent 15dff0f6a6
commit c6b757ed93

View File

@ -43,7 +43,7 @@ pub trait BlockBody:
fn transactions(&self) -> &[Self::Transaction]; fn transactions(&self) -> &[Self::Transaction];
/// Returns an iterator over the transactions in the block. /// Returns an iterator over the transactions in the block.
fn transactions_iter(&self) -> impl Iterator<Item = &Self::Transaction> { fn transactions_iter(&self) -> impl Iterator<Item = &Self::Transaction> + '_ {
self.transactions().iter() self.transactions().iter()
} }