From 338fff35ac821e6b03d68bd94418de500fb50f77 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 26 Mar 2020 14:55:02 +0100 Subject: Make `subscription::Recipe` cross-platform By removing the `Send` requirement when targetting Wasm --- native/src/subscription/events.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'native') 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 for Events { fn stream( self: Box, event_stream: EventStream, - ) -> BoxStream<'static, Self::Output> { + ) -> BoxStream { event_stream } } -- cgit