summaryrefslogtreecommitdiffstats
path: root/tokio-fs/src/rename.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio-fs/src/rename.rs')
-rw-r--r--tokio-fs/src/rename.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tokio-fs/src/rename.rs b/tokio-fs/src/rename.rs
index aaa8a494..1c2977ef 100644
--- a/tokio-fs/src/rename.rs
+++ b/tokio-fs/src/rename.rs
@@ -1,9 +1,8 @@
+use futures::{Future, Poll};
use std::fs;
use std::io;
use std::path::Path;
-use futures::{Future, Poll};
-
/// Rename a file or directory to a new name, replacing the original file if
/// `to` already exists.
///
@@ -46,6 +45,6 @@ where
type Error = io::Error;
fn poll(&mut self) -> Poll<Self::Item, Self::Error> {
- ::blocking_io(|| fs::rename(&self.from, &self.to))
+ crate::blocking_io(|| fs::rename(&self.from, &self.to))
}
}