Make subscription::Recipe cross-platform

By removing the `Send` requirement when targetting Wasm
This commit is contained in:
Héctor Ramón Jiménez 2020-03-26 14:55:02 +01:00
parent 138110f596
commit 338fff35ac
3 changed files with 22 additions and 26 deletions

View file

@ -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
}
}