diff options
author | 2020-03-26 14:55:02 +0100 | |
---|---|---|
committer | 2020-03-26 14:55:02 +0100 | |
commit | 338fff35ac821e6b03d68bd94418de500fb50f77 (patch) | |
tree | 7028f6e3c6f28c3d14392e5d1b3bb07586955c28 /native | |
parent | 138110f5967899365bb4e1409651dec43a46d123 (diff) | |
download | iced-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')
-rw-r--r-- | native/src/subscription/events.rs | 4 |
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 } } |