summaryrefslogtreecommitdiffstats
path: root/src/executor.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-16 11:40:19 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-16 11:40:19 +0100
commit5345ac785b969301305f6628152671a816e85ed8 (patch)
tree81df4f295aa2d35e6ab807f1d02cba78055f6da6 /src/executor.rs
parent09cf0b7af306ba92d2ba930bd871ee9733f8a4b9 (diff)
downloadiced-5345ac785b969301305f6628152671a816e85ed8.tar.gz
iced-5345ac785b969301305f6628152671a816e85ed8.tar.bz2
iced-5345ac785b969301305f6628152671a816e85ed8.zip
Fix missing `enter` in `iced::executor::Default`
Diffstat (limited to 'src/executor.rs')
-rw-r--r--src/executor.rs4
1 files changed, 4 insertions, 0 deletions
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<R>(&self, f: impl FnOnce() -> R) -> R {
+ self.0.enter(f)
+ }
}
}