summaryrefslogtreecommitdiffstats
path: root/winit/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-02-04 10:33:13 -0600
committerLibravatar GitHub <noreply@github.com>2020-02-04 10:33:13 -0600
commit7b892eb3e11596925a2993bcc4175ac09ff3768a (patch)
tree781402db9c2d6ebef5e47b4f469f47eea0396b4b /winit/src
parent12292126dcf9a6e2ac3befeb056638894afce788 (diff)
parent6d46833eb2a068bd3655859ea828dad04293e5ba (diff)
downloadiced-7b892eb3e11596925a2993bcc4175ac09ff3768a.tar.gz
iced-7b892eb3e11596925a2993bcc4175ac09ff3768a.tar.bz2
iced-7b892eb3e11596925a2993bcc4175ac09ff3768a.zip
Merge pull request #177 from hecrj/feature/web-subscriptions
Event subscriptions and custom executors for `iced_web`
Diffstat (limited to 'winit/src')
-rw-r--r--winit/src/proxy.rs3
1 files changed, 2 insertions, 1 deletions
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<Message: 'static> Proxy<Message> {
}
impl<Message: 'static> Sink<Message> for Proxy<Message> {
- type Error = core::convert::Infallible;
+ type Error = mpsc::SendError;
fn poll_ready(
self: Pin<&mut Self>,