Fix missing `enter` in `iced::executor::Default`

This commit is contained in:
Héctor Ramón Jiménez 2020-02-16 11:40:19 +01:00
parent 09cf0b7af3
commit 5345ac785b
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ mod platform {
) { ) {
let _ = self.0.spawn(future); let _ = self.0.spawn(future);
} }
fn enter<R>(&self, f: impl FnOnce() -> R) -> R {
self.0.enter(f)
}
} }
} }