diff --git a/subxt/src/blocks/block_types.rs b/subxt/src/blocks/block_types.rs index 6fea58696a..959ef488e2 100644 --- a/subxt/src/blocks/block_types.rs +++ b/subxt/src/blocks/block_types.rs @@ -223,7 +223,7 @@ impl ExtrinsicEvents { /// /// This works in the same way that [`events::Events::iter()`] does, with the /// exception that it filters out events not related to the submitted extrinsic. - pub fn iter(&self) -> impl Iterator> + Send + Sync + 'static { + pub fn iter(&self) -> impl Iterator> + Send + Sync + '_ { self.events.iter().filter(|ev| { ev.as_ref() .map(|ev| ev.phase() == events::Phase::ApplyExtrinsic(self.idx))