diff --git a/tests/testenv/mod.rs b/tests/testenv/mod.rs index 8a5567e..f827e78 100644 --- a/tests/testenv/mod.rs +++ b/tests/testenv/mod.rs @@ -186,6 +186,7 @@ impl TestEnv { } /// Get the path of the fd executable. + #[cfg_attr(windows, allow(unused))] pub fn test_exe(&self) -> &PathBuf { &self.fd_exe } diff --git a/tests/tests.rs b/tests/tests.rs index eb24472..732b61e 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -2208,7 +2208,7 @@ fn test_invalid_cwd() { std::env::set_current_dir(&root).unwrap(); fs::remove_dir(&root).unwrap(); - let output = std::process::Command::new(&te.test_exe()) + let output = std::process::Command::new(te.test_exe()) .arg("query") .arg(te.test_root()) .output()