Fix unused import warnings

This commit is contained in:
Matt Green 2016-10-25 07:27:07 -04:00
parent f7771a4480
commit da46e3ffb5

View File

@ -196,6 +196,7 @@ mod platform {
} }
#[cfg(test)] #[cfg(test)]
#[cfg(target_family = "unix")]
mod process_tests { mod process_tests {
use std::path::Path; use std::path::Path;
use std::thread; use std::thread;
@ -217,7 +218,6 @@ mod process_tests {
} }
#[test] #[test]
#[cfg(target_family = "unix")]
fn test_start() { fn test_start() {
let process = Process::new("echo hi", vec![]); let process = Process::new("echo hi", vec![]);
@ -225,7 +225,6 @@ mod process_tests {
} }
#[test] #[test]
#[cfg(target_family = "unix")]
fn test_wait() { fn test_wait() {
let file = Temp::new_file().unwrap(); let file = Temp::new_file().unwrap();
let path = file.to_path_buf(); let path = file.to_path_buf();
@ -236,7 +235,6 @@ mod process_tests {
} }
#[test] #[test]
#[cfg(target_family = "unix")]
fn test_kill() { fn test_kill() {
let file = Temp::new_file().unwrap(); let file = Temp::new_file().unwrap();
let path = file.to_path_buf(); let path = file.to_path_buf();