summaryrefslogtreecommitdiffstats
path: root/futures/src
diff options
context:
space:
mode:
authorLibravatar valbendan <valbendan@hotmail.com>2020-11-05 11:36:23 +0800
committerLibravatar valbendan <valbendan@hotmail.com>2020-11-05 11:36:23 +0800
commiteacb2e913fdbfe7af735ec0f4041599a87ad318a (patch)
treed492897991c6cd1fe0ec3aaa83bd4be88f64ae78 /futures/src
parente6131783e981121536769e221a9b939c41b60dec (diff)
downloadiced-eacb2e913fdbfe7af735ec0f4041599a87ad318a.tar.gz
iced-eacb2e913fdbfe7af735ec0f4041599a87ad318a.tar.bz2
iced-eacb2e913fdbfe7af735ec0f4041599a87ad318a.zip
upgrade tokio to latest version(v0.3)
Diffstat (limited to 'futures/src')
-rw-r--r--futures/src/executor/tokio.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/futures/src/executor/tokio.rs b/futures/src/executor/tokio.rs
index a730bce8..c6a21cec 100644
--- a/futures/src/executor/tokio.rs
+++ b/futures/src/executor/tokio.rs
@@ -16,6 +16,7 @@ impl Executor for Tokio {
}
fn enter<R>(&self, f: impl FnOnce() -> R) -> R {
- tokio::runtime::Runtime::enter(self, f)
+ let _guard = tokio::runtime::Runtime::enter(self);
+ f()
}
}