mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: add lifetime (#14460)
This commit is contained in:
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user