diff options
Diffstat (limited to 'tokio-fs/src/stdin.rs')
-rw-r--r-- | tokio-fs/src/stdin.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tokio-fs/src/stdin.rs b/tokio-fs/src/stdin.rs index ac04c43f..f4339047 100644 --- a/tokio-fs/src/stdin.rs +++ b/tokio-fs/src/stdin.rs @@ -1,6 +1,5 @@ -use tokio_io::AsyncRead; - use std::io::{self, Read, Stdin as StdStdin}; +use tokio_io::AsyncRead; /// A handle to the standard input stream of a process. /// @@ -33,7 +32,7 @@ pub fn stdin() -> Stdin { impl Read for Stdin { fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> { - ::would_block(|| self.std.read(buf)) + crate::would_block(|| self.std.read(buf)) } } |