1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-03-03 14:32:22 +02:00

windows: fix unused warnings on Windows

This commit is contained in:
Andrew Gallant 2018-09-04 22:54:13 -04:00
parent 241bc8f8fc
commit fd22cd520b
2 changed files with 4 additions and 2 deletions

View File

@ -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() {

View File

@ -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() {