diff --git a/test/sys/test_uio.rs b/test/sys/test_uio.rs index dda97cdeb1..90cda56f5d 100644 --- a/test/sys/test_uio.rs +++ b/test/sys/test_uio.rs @@ -2,7 +2,7 @@ use nix::sys::uio::*; use nix::unistd::*; use rand::{thread_rng, Rng}; use std::{cmp, iter}; -use std::fs::{OpenOptions, remove_file}; +use std::fs::{OpenOptions}; use std::os::unix::io::AsRawFd; use tempdir::TempDir; diff --git a/test/test_mount.rs b/test/test_mount.rs index 73d2689104..42670216eb 100644 --- a/test/test_mount.rs +++ b/test/test_mount.rs @@ -128,8 +128,6 @@ exit 23"; } pub fn test_mount_bind() { - use std::env; - let tempdir = TempDir::new("nix-test_mount") .unwrap_or_else(|e| panic!("tempdir failed: {}", e)); let file_name = "test";