From a996c8c7dd44225a140d9f11a16d96639423a3aa Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sun, 2 Jul 2023 10:10:29 +0200 Subject: [PATCH] Fix clippy As always: Some petty complaints of no actual use --- fish-rust/src/wutil/tests.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fish-rust/src/wutil/tests.rs b/fish-rust/src/wutil/tests.rs index 548d9de62..24bd03990 100644 --- a/fish-rust/src/wutil/tests.rs +++ b/fish-rust/src/wutil/tests.rs @@ -1,5 +1,4 @@ use super::*; -use libc; use widestring_suffix::widestrs; #[test] @@ -24,14 +23,14 @@ fn test_wdirname_wbasename() { for tc in testcases { let Test(path, tc_dir, tc_base) = *tc; - let dir = wdirname(&path); + let dir = wdirname(path); assert_eq!( dir, tc_dir, "\npath: {:?}, dir: {:?}, tc.dir: {:?}", path, dir, tc_dir ); - let base = wbasename(&path); + let base = wbasename(path); assert_eq!( base, tc_base, "\npath: {:?}, base: {:?}, tc.base: {:?}",