summaryrefslogtreecommitdiffstats
path: root/src/executor.rs
diff options
context:
space:
mode:
authorLibravatar dabaichi <valbendan@users.noreply.github.com>2020-11-06 04:20:19 +0000
committerLibravatar GitHub <noreply@github.com>2020-11-06 04:20:19 +0000
commita4ad1b297e97d6c3efc196681822f127efc954cc (patch)
tree43e0dd7af1678341059434b40eb3ce1f135d3968 /src/executor.rs
parenteacb2e913fdbfe7af735ec0f4041599a87ad318a (diff)
downloadiced-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.rs3
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)
}
}
}