Fix a couple small clippy warnings

- suppress warning about unused function on windows
- remove extraneous & in test
This commit is contained in:
Thayne McCombs 2022-11-11 00:34:30 -07:00
parent 84bf65e023
commit 38d406876d
2 changed files with 2 additions and 1 deletions

View File

@ -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
}

View File

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