@@ -10,7 +10,7 @@ use log::trace;
1010
1111use rustc_data_structures:: fx:: FxHashMap ;
1212use rustc_hir:: def_id:: DefId ;
13- use rustc_index:: vec :: { Idx , IndexVec } ;
13+ use rustc_index:: { Idx , IndexVec } ;
1414use rustc_middle:: mir:: Mutability ;
1515use rustc_middle:: ty:: layout:: TyAndLayout ;
1616use rustc_span:: Span ;
@@ -272,8 +272,9 @@ impl Time {
272272 fn get_wait_time ( & self , clock : & Clock ) -> Duration {
273273 match self {
274274 Time :: Monotonic ( instant) => instant. duration_since ( clock. now ( ) ) ,
275- Time :: RealTime ( time) =>
276- time. duration_since ( SystemTime :: now ( ) ) . unwrap_or ( Duration :: new ( 0 , 0 ) ) ,
275+ Time :: RealTime ( time) => {
276+ time. duration_since ( SystemTime :: now ( ) ) . unwrap_or ( Duration :: new ( 0 , 0 ) )
277+ }
277278 }
278279 }
279280}
@@ -603,10 +604,11 @@ impl<'mir, 'tcx: 'mir> ThreadManager<'mir, 'tcx> {
603604 // this allows us to have a deterministic scheduler.
604605 for thread in self . threads . indices ( ) {
605606 match self . timeout_callbacks . entry ( thread) {
606- Entry :: Occupied ( entry) =>
607+ Entry :: Occupied ( entry) => {
607608 if entry. get ( ) . call_time . get_wait_time ( clock) == Duration :: new ( 0 , 0 ) {
608609 return Some ( ( thread, entry. remove ( ) . callback ) ) ;
609- } ,
610+ }
611+ }
610612 Entry :: Vacant ( _) => { }
611613 }
612614 }
0 commit comments