From fe8b1f16810bc4f61896e7546cffcf8175442d9e Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 15 Nov 2022 10:31:26 +0000 Subject: [PATCH] Elide lifetime --- subxt/src/blocks/block_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))