run_in_dummy_executor isnt unsafe, its just a bad idea

This commit is contained in:
Pat Hickey
2021-05-06 16:25:12 -07:00
parent 35a9d4e3c9
commit e9f410d1db
3 changed files with 4 additions and 4 deletions

View File

@@ -110,5 +110,5 @@ where
Fut: Future<Output = Result<T, Error>>,
T: Send + 'static,
{
tokio::task::block_in_place(move || unsafe { wiggle::run_in_dummy_executor(f()) })
tokio::task::block_in_place(move || wiggle::run_in_dummy_executor(f()))
}