From 5345ac785b969301305f6628152671a816e85ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sun, 16 Feb 2020 11:40:19 +0100 Subject: [PATCH] Fix missing `enter` in `iced::executor::Default` --- src/executor.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/executor.rs b/src/executor.rs index e31bd93d..b4be5264 100644 --- a/src/executor.rs +++ b/src/executor.rs @@ -38,6 +38,10 @@ mod platform { ) { let _ = self.0.spawn(future); } + + fn enter(&self, f: impl FnOnce() -> R) -> R { + self.0.enter(f) + } } }