summaryrefslogtreecommitdiffstats
path: root/native/src/subscription
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-26 14:55:02 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-26 14:55:02 +0100
commit338fff35ac821e6b03d68bd94418de500fb50f77 (patch)
tree7028f6e3c6f28c3d14392e5d1b3bb07586955c28 /native/src/subscription
parent138110f5967899365bb4e1409651dec43a46d123 (diff)
downloadiced-338fff35ac821e6b03d68bd94418de500fb50f77.tar.gz
iced-338fff35ac821e6b03d68bd94418de500fb50f77.tar.bz2
iced-338fff35ac821e6b03d68bd94418de500fb50f77.zip
Make `subscription::Recipe` cross-platform
By removing the `Send` requirement when targetting Wasm
Diffstat (limited to 'native/src/subscription')
-rw-r--r--native/src/subscription/events.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/subscription/events.rs b/native/src/subscription/events.rs
index 7d33166e..ceae467d 100644
--- a/native/src/subscription/events.rs
+++ b/native/src/subscription/events.rs
@@ -2,7 +2,7 @@ use crate::{
subscription::{EventStream, Recipe},
Event, Hasher,
};
-use iced_futures::futures::stream::BoxStream;
+use iced_futures::BoxStream;
pub struct Events;
@@ -18,7 +18,7 @@ impl Recipe<Hasher, Event> for Events {
fn stream(
self: Box<Self>,
event_stream: EventStream,
- ) -> BoxStream<'static, Self::Output> {
+ ) -> BoxStream<Self::Output> {
event_stream
}
}