diff options
author | 2020-11-06 04:20:19 +0000 | |
---|---|---|
committer | 2020-11-06 04:20:19 +0000 | |
commit | a4ad1b297e97d6c3efc196681822f127efc954cc (patch) | |
tree | 43e0dd7af1678341059434b40eb3ce1f135d3968 /src/executor.rs | |
parent | eacb2e913fdbfe7af735ec0f4041599a87ad318a (diff) | |
download | iced-a4ad1b297e97d6c3efc196681822f127efc954cc.tar.gz iced-a4ad1b297e97d6c3efc196681822f127efc954cc.tar.bz2 iced-a4ad1b297e97d6c3efc196681822f127efc954cc.zip |
Update src/executor.rs
fix executor other than tokio
Co-authored-by: Héctor Ramón <hector0193@gmail.com>
Diffstat (limited to 'src/executor.rs')
-rw-r--r-- | src/executor.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/executor.rs b/src/executor.rs index 34538fb6..13a3990b 100644 --- a/src/executor.rs +++ b/src/executor.rs @@ -40,8 +40,7 @@ mod platform { } fn enter<R>(&self, f: impl FnOnce() -> R) -> R { - let _guard = self.0.enter(); - f() + super::Executor::enter(&self.0, f) } } } |