unwrap -> expect

This commit is contained in:
Adrian Heine 2021-08-05 23:35:43 +02:00
parent 5ca1e45b66
commit b093a952be

View file

@ -14,7 +14,7 @@ pub fn run<F: Future>(future: F) -> F::Output {
Builder::new_current_thread() Builder::new_current_thread()
.enable_io() .enable_io()
.build() .build()
.unwrap() .expect("Error setting up async runtime")
.block_on(future) .block_on(future)
} }
pub use tokio::join; pub use tokio::join;