diff options
author | Andrew Gallant <jamslam@gmail.com> | 2018-09-04 22:54:13 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2018-09-04 23:18:55 -0400 |
commit | fd22cd520bf7c76b53ec0001dff5bf898ce92c75 (patch) | |
tree | 6b67449efd5c0def580743eb57e6cad1efde733d | |
parent | 241bc8f8fcfdc725afa65ee539c37960b10550b1 (diff) |
windows: fix unused warnings on Windows
-rw-r--r-- | grep-cli/src/pattern.rs | 2 | ||||
-rw-r--r-- | ignore/src/walk.rs | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/grep-cli/src/pattern.rs b/grep-cli/src/pattern.rs index ed1d95a5..dbdb1d8f 100644 --- a/grep-cli/src/pattern.rs +++ b/grep-cli/src/pattern.rs @@ -183,7 +183,7 @@ pub fn patterns_from_reader<R: io::Read>(rdr: R) -> io::Result<Vec<String>> { #[cfg(test)] mod tests { - use super::{pattern_from_bytes, pattern_from_os}; + use super::*; #[test] fn bytes() { diff --git a/ignore/src/walk.rs b/ignore/src/walk.rs index bded1e1c..3a4515cd 100644 --- a/ignore/src/walk.rs +++ b/ignore/src/walk.rs @@ -1704,7 +1704,7 @@ mod tests { use tempdir::TempDir; - use super::{DirEntry, WalkBuilder, WalkState, device_num}; + use super::{DirEntry, WalkBuilder, WalkState}; fn wfile<P: AsRef<Path>>(path: P, contents: &str) { let mut file = File::create(path).unwrap(); @@ -2019,6 +2019,8 @@ mod tests { #[test] #[cfg(target_os = "linux")] fn same_file_system() { + use super::device_num; + // If for some reason /sys doesn't exist or isn't a directory, just // skip this test. if !Path::new("/sys").is_dir() { |