mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 22:03:12 +00:00
Fix clippy
As always: Some petty complaints of no actual use
This commit is contained in:
parent
12dfbc14d7
commit
a996c8c7dd
1 changed files with 2 additions and 3 deletions
|
@ -1,5 +1,4 @@
|
||||||
use super::*;
|
use super::*;
|
||||||
use libc;
|
|
||||||
use widestring_suffix::widestrs;
|
use widestring_suffix::widestrs;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -24,14 +23,14 @@ fn test_wdirname_wbasename() {
|
||||||
|
|
||||||
for tc in testcases {
|
for tc in testcases {
|
||||||
let Test(path, tc_dir, tc_base) = *tc;
|
let Test(path, tc_dir, tc_base) = *tc;
|
||||||
let dir = wdirname(&path);
|
let dir = wdirname(path);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
dir, tc_dir,
|
dir, tc_dir,
|
||||||
"\npath: {:?}, dir: {:?}, tc.dir: {:?}",
|
"\npath: {:?}, dir: {:?}, tc.dir: {:?}",
|
||||||
path, dir, tc_dir
|
path, dir, tc_dir
|
||||||
);
|
);
|
||||||
|
|
||||||
let base = wbasename(&path);
|
let base = wbasename(path);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
base, tc_base,
|
base, tc_base,
|
||||||
"\npath: {:?}, base: {:?}, tc.base: {:?}",
|
"\npath: {:?}, base: {:?}, tc.base: {:?}",
|
||||||
|
|
Loading…
Reference in a new issue