summaryrefslogtreecommitdiffstats
path: root/tokio-fs/src/file/open.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2019-05-14 10:27:36 -0700
committerGitHub <noreply@github.com>2019-05-14 10:27:36 -0700
commitcb4aea394e6851ae8cc45a68beeaf2c93cc9a0c0 (patch)
tree2158eab230c8717d3b35717e50f14fda6ca0edf1 /tokio-fs/src/file/open.rs
parent79d88200500f6e6c9970e1ad26469276c1a2f71f (diff)
Update Tokio to Rust 2018 (#1082)
Diffstat (limited to 'tokio-fs/src/file/open.rs')
-rw-r--r--tokio-fs/src/file/open.rs6
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())