Update src/executor.rs
fix executor other than tokio Co-authored-by: Héctor Ramón <hector0193@gmail.com>
This commit is contained in:
parent
eacb2e913f
commit
a4ad1b297e
@ -40,8 +40,7 @@ mod platform {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn enter<R>(&self, f: impl FnOnce() -> R) -> R {
|
fn enter<R>(&self, f: impl FnOnce() -> R) -> R {
|
||||||
let _guard = self.0.enter();
|
super::Executor::enter(&self.0, f)
|
||||||
f()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user