summaryrefslogtreecommitdiffstats
path: root/tokio-fs/src/remove_file.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/remove_file.rs
parent79d88200500f6e6c9970e1ad26469276c1a2f71f (diff)
Update Tokio to Rust 2018 (#1082)
Diffstat (limited to 'tokio-fs/src/remove_file.rs')
-rw-r--r--tokio-fs/src/remove_file.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tokio-fs/src/remove_file.rs b/tokio-fs/src/remove_file.rs
index da273f68..d2d4b86d 100644
--- a/tokio-fs/src/remove_file.rs
+++ b/tokio-fs/src/remove_file.rs
@@ -1,9 +1,8 @@
+use futures::{Future, Poll};
use std::fs;
use std::io;
use std::path::Path;
-use futures::{Future, Poll};
-
/// Removes a file from the filesystem.
///
/// Note that there is no
@@ -43,6 +42,6 @@ where
type Error = io::Error;
fn poll(&mut self) -> Poll<Self::Item, Self::Error> {
- ::blocking_io(|| fs::remove_file(&self.path))
+ crate::blocking_io(|| fs::remove_file(&self.path))
}
}