Skip to content

Commit bb0c657

Browse files
authored
fixing mismatched_lifetime_syntaxes lint (#390)
1 parent 48efa5d commit bb0c657

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/cardano-blockchain-types/src/multi_era_block_data.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ impl MultiEraBlock {
163163
/// The decoded block data, which can easily be processed by a consumer.
164164
#[must_use]
165165
#[allow(clippy::missing_panics_doc)]
166-
pub fn decode(&self) -> &pallas::ledger::traverse::MultiEraBlock {
166+
pub fn decode(&self) -> &pallas::ledger::traverse::MultiEraBlock<'_> {
167167
self.inner.data.borrow_block()
168168
}
169169

@@ -275,12 +275,12 @@ impl MultiEraBlock {
275275

276276
/// Returns a list of transactions withing this block.
277277
#[must_use]
278-
pub fn txs(&self) -> Vec<MultiEraTx> {
278+
pub fn txs(&self) -> Vec<MultiEraTx<'_>> {
279279
self.decode().txs()
280280
}
281281

282282
/// Returns an iterator over `(TxnIndex, MultiEraTx)` pair.
283-
pub fn enumerate_txs(&self) -> impl Iterator<Item = (TxnIndex, MultiEraTx)> {
283+
pub fn enumerate_txs(&self) -> impl Iterator<Item = (TxnIndex, MultiEraTx<'_>)> {
284284
self.txs()
285285
.into_iter()
286286
.enumerate()

0 commit comments

Comments
 (0)