summaryrefslogtreecommitdiffstats
path: root/tokio-fs/src/stdout.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio-fs/src/stdout.rs')
-rw-r--r--tokio-fs/src/stdout.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/tokio-fs/src/stdout.rs b/tokio-fs/src/stdout.rs
index 0c2bdc54..6141d7dd 100644
--- a/tokio-fs/src/stdout.rs
+++ b/tokio-fs/src/stdout.rs
@@ -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())
}
}