Browse Source

unwrap -> expect

master
Adrian Heine 3 years ago
parent
commit
b093a952be
  1. 2
      src/async_utils.rs

2
src/async_utils.rs

@ -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;

Loading…
Cancel
Save