From a4ad1b297e97d6c3efc196681822f127efc954cc Mon Sep 17 00:00:00 2001 From: dabaichi Date: Fri, 6 Nov 2020 04:20:19 +0000 Subject: [PATCH] Update src/executor.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix executor other than tokio Co-authored-by: Héctor Ramón --- src/executor.rs | 3 +-- 1 file changed, 1 insertion(+), 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(&self, f: impl FnOnce() -> R) -> R { - let _guard = self.0.enter(); - f() + super::Executor::enter(&self.0, f) } } }