diff options
author | 2021-11-14 11:04:20 -0500 | |
---|---|---|
committer | 2021-11-14 11:04:20 -0500 | |
commit | 24d7d4740fd163b3d3f52fb8ea41233001ab6b93 (patch) | |
tree | c291e4539f1ea0adf9b96e35549b09d128aff2b6 /native/src/subscription.rs | |
parent | 55eaeceec8520e008260c8b5630b53d6d5ecdfb6 (diff) | |
download | iced-24d7d4740fd163b3d3f52fb8ea41233001ab6b93.tar.gz iced-24d7d4740fd163b3d3f52fb8ea41233001ab6b93.tar.bz2 iced-24d7d4740fd163b3d3f52fb8ea41233001ab6b93.zip |
Use iced_futures utilities to make native work under wasm32 target.
Diffstat (limited to '')
-rw-r--r-- | native/src/subscription.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/subscription.rs b/native/src/subscription.rs index ff954382..2950879c 100644 --- a/native/src/subscription.rs +++ b/native/src/subscription.rs @@ -1,7 +1,7 @@ //! Listen to external events in your application. use crate::event::{self, Event}; use crate::Hasher; -use iced_futures::futures::stream::BoxStream; +use iced_futures::BoxStream; /// A request to listen to external events. /// @@ -21,7 +21,7 @@ pub type Subscription<T> = /// A stream of runtime events. /// /// It is the input of a [`Subscription`] in the native runtime. -pub type EventStream = BoxStream<'static, (Event, event::Status)>; +pub type EventStream = BoxStream<(Event, event::Status)>; /// A native [`Subscription`] tracker. pub type Tracker = |