diff options
Diffstat (limited to 'mumd/src/network.rs')
| -rw-r--r-- | mumd/src/network.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mumd/src/network.rs b/mumd/src/network.rs index 4eca90d..2b803c0 100644 --- a/mumd/src/network.rs +++ b/mumd/src/network.rs @@ -4,7 +4,10 @@ pub mod udp; use futures_util::FutureExt; use log::*; use std::{future::Future, net::SocketAddr}; -use tokio::{select, sync::{oneshot, watch}}; +use tokio::{ + select, + sync::{oneshot, watch}, +}; use crate::state::StatePhase; @@ -36,7 +39,8 @@ async fn run_until<F, R>( fut: F, mut phase_watcher: watch::Receiver<StatePhase>, ) -> Option<R> - where F: Future<Output = R>, +where + F: Future<Output = R>, { let (tx, rx) = oneshot::channel(); let phase_transition_block = async { |
