Update src/executor.rs

fix executor other than tokio

Co-authored-by: Héctor Ramón <hector0193@gmail.com>
This commit is contained in:
dabaichi 2020-11-06 04:20:19 +00:00 committed by GitHub
parent eacb2e913f
commit a4ad1b297e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}
}
}