File tree 1 file changed +7
-10
lines changed 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -386,21 +386,20 @@ macro_rules! await {
386
386
loop {
387
387
#[ allow( unreachable_patterns) ]
388
388
match $e {
389
- Err ( $crate:: Error :: Other ( e) ) => {
389
+ Err ( $crate:: Error :: Other ( e) ) =>
390
+ {
390
391
#[ allow( unreachable_code) ]
391
392
break Err ( e)
392
- } ,
393
- Err ( $crate:: Error :: WouldBlock ) => { } , // yield (see below)
393
+ }
394
+ Err ( $crate:: Error :: WouldBlock ) => { } // yield (see below)
394
395
Ok ( x) => break Ok ( x) ,
395
396
}
396
397
397
398
yield
398
399
}
399
- }
400
+ } ;
400
401
}
401
402
402
-
403
-
404
403
/// Future adapter
405
404
///
406
405
/// This is a *try* operation from a `nb::Result` to a `futures::Poll`
@@ -432,10 +431,8 @@ macro_rules! try_nb {
432
431
( $e: expr) => {
433
432
match $e {
434
433
Err ( $crate:: Error :: Other ( e) ) => return Err ( e) ,
435
- Err ( $crate:: Error :: WouldBlock ) => {
436
- return Ok ( :: futures:: Async :: NotReady )
437
- } ,
434
+ Err ( $crate:: Error :: WouldBlock ) => return Ok ( :: futures:: Async :: NotReady ) ,
438
435
Ok ( x) => x,
439
436
}
440
- }
437
+ } ;
441
438
}
You can’t perform that action at this time.
0 commit comments