summaryrefslogtreecommitdiffstats
path: root/src/executor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/executor.rs')
-rw-r--r--src/executor.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/executor.rs b/src/executor.rs
index ea6ab14a..34538fb6 100644
--- a/src/executor.rs
+++ b/src/executor.rs
@@ -40,7 +40,8 @@ mod platform {
}
fn enter<R>(&self, f: impl FnOnce() -> R) -> R {
- self.0.enter(f)
+ let _guard = self.0.enter();
+ f()
}
}
}