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
@@ -1,6 +1,6 @@
use std::io::{self, Write};
use futures::{Poll, Future};
use futures::{Poll, Future, Async};
/// A future used to fully flush an I/O object.
///
@@ -33,7 +33,7 @@ impl<A> Future for Flush<A>
fn poll(&mut self) -> Poll<A, io::Error> {
try_nb!(self.a.as_mut().unwrap().flush());
Poll::Ok(self.a.take().unwrap())
Ok(Async::Ready(self.a.take().unwrap()))
}
}