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()
.enable_io()
.build()
.unwrap()
.expect("Error setting up async runtime")
.block_on(future)
}
pub use tokio::join;

Loading…
Cancel
Save