From da46e3ffb5d69715362168d639728919418e7967 Mon Sep 17 00:00:00 2001 From: Matt Green Date: Tue, 25 Oct 2016 07:27:07 -0400 Subject: [PATCH] Fix unused import warnings --- src/runner.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/runner.rs b/src/runner.rs index d6c801d..f6dd74e 100644 --- a/src/runner.rs +++ b/src/runner.rs @@ -196,6 +196,7 @@ mod platform { } #[cfg(test)] +#[cfg(target_family = "unix")] mod process_tests { use std::path::Path; use std::thread; @@ -217,7 +218,6 @@ mod process_tests { } #[test] - #[cfg(target_family = "unix")] fn test_start() { let process = Process::new("echo hi", vec![]); @@ -225,7 +225,6 @@ mod process_tests { } #[test] - #[cfg(target_family = "unix")] fn test_wait() { let file = Temp::new_file().unwrap(); let path = file.to_path_buf(); @@ -236,7 +235,6 @@ mod process_tests { } #[test] - #[cfg(target_family = "unix")] fn test_kill() { let file = Temp::new_file().unwrap(); let path = file.to_path_buf();