@@ -279,7 +279,8 @@ fn run_select(
279
279
// Find the selected operation.
280
280
for ( handle, i, ptr) in handles. iter_mut ( ) {
281
281
// Is this the selected operation?
282
- if sel == Selected :: Operation ( Operation :: hook :: < & dyn SelectHandle > ( handle) ) {
282
+ if sel == Selected :: Operation ( Operation :: hook :: < & dyn SelectHandle > ( handle) )
283
+ {
283
284
// Try selecting this operation.
284
285
if handle. accept ( & mut token, cx) {
285
286
return Some ( ( * i, * ptr) ) ;
@@ -317,7 +318,10 @@ fn run_select(
317
318
}
318
319
319
320
/// Runs until one of the operations becomes ready, potentially blocking the current thread.
320
- fn run_ready ( handles : & mut [ ( & dyn SelectHandle , usize , * const u8 ) ] , timeout : Timeout ) -> Option < usize > {
321
+ fn run_ready (
322
+ handles : & mut [ ( & dyn SelectHandle , usize , * const u8 ) ] ,
323
+ timeout : Timeout ,
324
+ ) -> Option < usize > {
321
325
if handles. is_empty ( ) {
322
326
// Wait until the timeout and return.
323
327
match timeout {
@@ -455,7 +459,9 @@ pub fn try_select<'a>(
455
459
456
460
/// Blocks until one of the operations becomes ready and selects it.
457
461
#[ inline]
458
- pub fn select < ' a > ( handles : & mut [ ( & ' a dyn SelectHandle , usize , * const u8 ) ] ) -> SelectedOperation < ' a > {
462
+ pub fn select < ' a > (
463
+ handles : & mut [ ( & ' a dyn SelectHandle , usize , * const u8 ) ] ,
464
+ ) -> SelectedOperation < ' a > {
459
465
if handles. is_empty ( ) {
460
466
panic ! ( "no operations have been added to `Select`" ) ;
461
467
}
0 commit comments