1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

Ride along: fix some trivial clippy warnings

This commit is contained in:
Sylvestre Ledru 2023-05-02 22:41:55 +02:00
parent 90e0d3030f
commit aae3f2f99c
2 changed files with 3 additions and 3 deletions

View file

@ -209,7 +209,7 @@ mod test {
assert_eq!(super::parse_mode("u+x").unwrap(), 0o766); assert_eq!(super::parse_mode("u+x").unwrap(), 0o766);
assert_eq!( assert_eq!(
super::parse_mode("+x").unwrap(), super::parse_mode("+x").unwrap(),
if !crate::os::is_wsl_1() { 0o777 } else { 0o776 } if crate::os::is_wsl_1() { 0o776 } else { 0o777 }
); );
assert_eq!(super::parse_mode("a-w").unwrap(), 0o444); assert_eq!(super::parse_mode("a-w").unwrap(), 0o444);
assert_eq!(super::parse_mode("g-r").unwrap(), 0o626); assert_eq!(super::parse_mode("g-r").unwrap(), 0o626);

View file

@ -70,7 +70,7 @@ fn test_mv_move_file_into_dir_with_target_arg() {
.succeeds() .succeeds()
.no_stderr(); .no_stderr();
assert!(at.file_exists(format!("{dir}/{file}"))) assert!(at.file_exists(format!("{dir}/{file}")));
} }
#[test] #[test]
@ -88,7 +88,7 @@ fn test_mv_move_file_into_file_with_target_arg() {
.fails() .fails()
.stderr_is(format!("mv: target directory '{file1}': Not a directory\n")); .stderr_is(format!("mv: target directory '{file1}': Not a directory\n"));
assert!(at.file_exists(file1)) assert!(at.file_exists(file1));
} }
#[test] #[test]