From 6d46833eb2a068bd3655859ea828dad04293e5ba Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 4 Feb 2020 03:28:47 +0100 Subject: Support event subscriptions in `iced_web` Also improves the overall web runtime, avoiding nested update loops. --- winit/src/proxy.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winit') diff --git a/winit/src/proxy.rs b/winit/src/proxy.rs index cff9df33..cff6ca72 100644 --- a/winit/src/proxy.rs +++ b/winit/src/proxy.rs @@ -1,4 +1,5 @@ use iced_native::futures::{ + channel::mpsc, task::{Context, Poll}, Sink, }; @@ -23,7 +24,7 @@ impl Proxy { } impl Sink for Proxy { - type Error = core::convert::Infallible; + type Error = mpsc::SendError; fn poll_ready( self: Pin<&mut Self>, -- cgit