Skip to content

Commit

Permalink
rt: another formatting fix
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-Antoine Perennou <[email protected]>
  • Loading branch information
Keruspe committed Nov 6, 2020
1 parent 14ee0c2 commit 54fc4fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tokio/src/runtime/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,10 @@ impl Handle {
/// ```
pub fn block_on<F: Future>(&self, future: F) -> F::Output {
match &self.spawner {
Spawner::Basic(exec) => {
self.block_on_with_basic_scheduler::<F, crate::park::thread::ParkThread>(future, exec, None)
}
Spawner::Basic(exec) => self
.block_on_with_basic_scheduler::<F, crate::park::thread::ParkThread>(
future, exec, None,
),
#[cfg(feature = "rt-multi-thread")]
Spawner::ThreadPool(_) => {
let _enter = self.enter();
Expand Down

0 comments on commit 54fc4fb

Please sign in to comment.