Skip to content

Commit c2415e4

Browse files
committed
apply #7 to the await! macro
1 parent 159cf95 commit c2415e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,12 @@ where
302302
macro_rules! await {
303303
($e:expr) => {
304304
loop {
305+
#[allow(unreachable_patterns)]
305306
match $e {
306-
Err($crate::Error::Other(e)) => break Err(e),
307+
Err($crate::Error::Other(e)) => {
308+
#[allow(unreachable_code)]
309+
break Err(e)
310+
},
307311
Err($crate::Error::WouldBlock) => yield (),
308312
Ok(x) => break Ok(x),
309313
}

0 commit comments

Comments
 (0)