From 996b3edd1445843651f4d300cdc69f1acbf56e20 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 15 Nov 2022 10:30:16 +0000 Subject: [PATCH] Add Send + Sync bounds to ExtrinsicEvents::iter() --- 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 3522991521..6fea58696a 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> + '_ { + pub fn iter(&self) -> impl Iterator> + Send + Sync + 'static { self.events.iter().filter(|ev| { ev.as_ref() .map(|ev| ev.phase() == events::Phase::ApplyExtrinsic(self.idx))