mirror of https://github.com/sharkdp/fd.git
Fix a couple small clippy warnings
- suppress warning about unused function on windows - remove extraneous & in test
This commit is contained in:
parent
84bf65e023
commit
38d406876d
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue