Make subscription::Recipe cross-platform
By removing the `Send` requirement when targetting Wasm
This commit is contained in:
parent
138110f596
commit
338fff35ac
3 changed files with 22 additions and 26 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue