From a23f1a13e76504e464ecc8f287c191e34a0d757a Mon Sep 17 00:00:00 2001 From: Knight Date: Sun, 7 Aug 2016 01:22:17 +0800 Subject: [PATCH] Remove useless crates --- Cargo.toml | 6 ------ tests/test_install.rs | 9 +-------- tests/test_link.rs | 2 -- tests/test_mv.rs | 3 --- tests/test_rmdir.rs | 2 -- 5 files changed, 1 insertion(+), 21 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c88f9c23e..1263c63c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -192,14 +192,8 @@ yes = { optional=true, path="src/yes" } [dev-dependencies] time = "*" -kernel32-sys = "*" -winapi = "*" filetime = "*" libc = "*" -memchr = "*" -primal = "*" -aho-corasick= "*" -regex-syntax= "*" regex="*" rand="*" tempdir="*" diff --git a/tests/test_install.rs b/tests/test_install.rs index a86a5e4e1..52ace1983 100644 --- a/tests/test_install.rs +++ b/tests/test_install.rs @@ -1,10 +1,3 @@ -extern crate libc; -extern crate time; -extern crate kernel32; -extern crate winapi; -extern crate filetime; - -use self::filetime::*; use common::util::*; use std::os::unix::fs::PermissionsExt; @@ -17,7 +10,7 @@ fn at_and_ucmd() -> (AtPath, UCommand) { #[test] fn test_install_help() { - let (at, mut ucmd) = at_and_ucmd(); + let (_, mut ucmd) = at_and_ucmd(); let result = ucmd.arg("--help").run(); diff --git a/tests/test_link.rs b/tests/test_link.rs index 45f28967a..4915be825 100644 --- a/tests/test_link.rs +++ b/tests/test_link.rs @@ -1,5 +1,3 @@ -extern crate libc; - use common::util::*; static UTIL_NAME: &'static str = "link"; diff --git a/tests/test_mv.rs b/tests/test_mv.rs index 34073c5f9..c8f677cec 100644 --- a/tests/test_mv.rs +++ b/tests/test_mv.rs @@ -1,7 +1,4 @@ -extern crate libc; extern crate time; -extern crate kernel32; -extern crate winapi; extern crate filetime; use self::filetime::*; diff --git a/tests/test_rmdir.rs b/tests/test_rmdir.rs index 021b0b4ef..248b11379 100644 --- a/tests/test_rmdir.rs +++ b/tests/test_rmdir.rs @@ -1,5 +1,3 @@ -extern crate libc; - use common::util::*; static UTIL_NAME: &'static str = "rmdir";