diff options
Diffstat (limited to 'tokio-fs/src/file/open.rs')
-rw-r--r-- | tokio-fs/src/file/open.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tokio-fs/src/file/open.rs b/tokio-fs/src/file/open.rs index 68f7abe3..b95af160 100644 --- a/tokio-fs/src/file/open.rs +++ b/tokio-fs/src/file/open.rs @@ -1,7 +1,5 @@ use super::File; - -use futures::{Future, Poll}; - +use futures::{try_ready, Future, Poll}; use std::fs::OpenOptions as StdOpenOptions; use std::io; use std::path::Path; @@ -30,7 +28,7 @@ where type Error = io::Error; fn poll(&mut self) -> Poll<Self::Item, Self::Error> { - let std = try_ready!(::blocking_io(|| self.options.open(&self.path))); + let std = try_ready!(crate::blocking_io(|| self.options.open(&self.path))); let file = File::from_std(std); Ok(file.into()) |