Update Tokio to Rust 2018 (#1082)

This commit is contained in:
Carl Lerche
2019-05-14 10:27:36 -07:00
committed by GitHub
parent 79d8820050
commit cb4aea394e
343 changed files with 1725 additions and 2813 deletions
+3 -5
View File
@@ -1,8 +1,6 @@
use tokio_io::AsyncWrite;
use futures::Poll;
use std::io::{self, Stdout as StdStdout, Write};
use tokio_io::AsyncWrite;
/// A handle to the standard output stream of a process.
///
@@ -29,11 +27,11 @@ pub fn stdout() -> Stdout {
impl Write for Stdout {
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
::would_block(|| self.std.write(buf))
crate::would_block(|| self.std.write(buf))
}
fn flush(&mut self) -> io::Result<()> {
::would_block(|| self.std.flush())
crate::would_block(|| self.std.flush())
}
}