summaryrefslogtreecommitdiffstats
path: root/tokio-fs/tests/link.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio-fs/tests/link.rs')
-rw-r--r--tokio-fs/tests/link.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/tokio-fs/tests/link.rs b/tokio-fs/tests/link.rs
index 11e6f45f..33364d98 100644
--- a/tokio-fs/tests/link.rs
+++ b/tokio-fs/tests/link.rs
@@ -1,8 +1,5 @@
-extern crate futures;
-extern crate tempdir;
-extern crate tokio_fs;
+#![deny(warnings, rust_2018_idioms)]
-use futures::Future;
use std::fs;
use std::io::prelude::*;
use std::io::BufReader;
@@ -38,6 +35,8 @@ fn test_hard_link() {
#[cfg(unix)]
#[test]
fn test_symlink() {
+ use futures::Future;
+
let dir = TempDir::new("base").unwrap();
let src = dir.path().join("src.txt");
let dst = dir.path().join("dst.txt");