Skip to content

Commit 2536484

Browse files
committed
Code formatting
1 parent 03c87e1 commit 2536484

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/lib.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -386,21 +386,20 @@ macro_rules! await {
386386
loop {
387387
#[allow(unreachable_patterns)]
388388
match $e {
389-
Err($crate::Error::Other(e)) => {
389+
Err($crate::Error::Other(e)) =>
390+
{
390391
#[allow(unreachable_code)]
391392
break Err(e)
392-
},
393-
Err($crate::Error::WouldBlock) => {}, // yield (see below)
393+
}
394+
Err($crate::Error::WouldBlock) => {} // yield (see below)
394395
Ok(x) => break Ok(x),
395396
}
396397

397398
yield
398399
}
399-
}
400+
};
400401
}
401402

402-
403-
404403
/// Future adapter
405404
///
406405
/// This is a *try* operation from a `nb::Result` to a `futures::Poll`
@@ -432,10 +431,8 @@ macro_rules! try_nb {
432431
($e:expr) => {
433432
match $e {
434433
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),
438435
Ok(x) => x,
439436
}
440-
}
437+
};
441438
}

0 commit comments

Comments
 (0)