summaryrefslogtreecommitdiffstats
path: root/tokio-fs/src/file/create.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio-fs/src/file/create.rs')
-rw-r--r--tokio-fs/src/file/create.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/tokio-fs/src/file/create.rs b/tokio-fs/src/file/create.rs
index e92575cc..da03779e 100644
--- a/tokio-fs/src/file/create.rs
+++ b/tokio-fs/src/file/create.rs
@@ -1,7 +1,5 @@
use super::File;
-
-use futures::{Future, Poll};
-
+use futures::{try_ready, Future, Poll};
use std::fs::File as StdFile;
use std::io;
use std::path::Path;
@@ -29,7 +27,7 @@ where
type Error = io::Error;
fn poll(&mut self) -> Poll<Self::Item, Self::Error> {
- let std = try_ready!(::blocking_io(|| StdFile::create(&self.path)));
+ let std = try_ready!(crate::blocking_io(|| StdFile::create(&self.path)));
let file = File::from_std(std);
Ok(file.into())