summaryrefslogtreecommitdiffstats
path: root/native/src/subscription/events.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/subscription/events.rs')
-rw-r--r--native/src/subscription/events.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/native/src/subscription/events.rs b/native/src/subscription/events.rs
index f689f3af..ca143bb3 100644
--- a/native/src/subscription/events.rs
+++ b/native/src/subscription/events.rs
@@ -27,10 +27,9 @@ where
self: Box<Self>,
event_stream: EventStream,
) -> BoxStream<Self::Output> {
- event_stream
- .filter_map(move |(event, status)| {
- future::ready((self.f)(event, status))
- })
- .boxed()
+ let stream = event_stream.filter_map(move |(event, status)| {
+ future::ready((self.f)(event, status))
+ });
+ iced_futures::boxed_stream(stream)
}
}