Update with Poll/Async changes

This commit is contained in:
Alex Crichton
2016-09-02 12:17:38 -07:00
parent 3282b3ec0d
commit 3794cf7f1d
17 changed files with 103 additions and 124 deletions
+2 -2
View File
@@ -25,9 +25,9 @@ macro_rules! try_nb {
($e:expr) => (match $e {
Ok(t) => t,
Err(ref e) if e.kind() == ::std::io::ErrorKind::WouldBlock => {
return ::futures::Poll::NotReady
return Ok(::futures::Async::NotReady)
}
Err(e) => return ::futures::Poll::Err(e.into()),
Err(e) => return Err(e.into()),
})
}