diff options
author | Thayne McCombs <astrothayne@gmail.com> | 2022-11-11 00:34:30 -0700 |
---|---|---|
committer | Thayne McCombs <astrothayne@gmail.com> | 2022-11-11 02:12:58 -0700 |
commit | 38d406876d8d416533c1f9b58b038f638a65c18b (patch) | |
tree | 0a807a8e1e28e808b16b2586a72f2fe6c689b27d | |
parent | 84bf65e02384845ae97dac04f89681028246e5f1 (diff) |
Fix a couple small clippy warnings
- suppress warning about unused function on windows
- remove extraneous & in test
-rw-r--r-- | tests/testenv/mod.rs | 1 | ||||
-rw-r--r-- | tests/tests.rs | 2 |
2 files changed, 2 insertions, 1 deletions
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() |