From aae3f2f99cefedfa69e46459ece7fbe4aabbc659 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 2 May 2023 22:41:55 +0200 Subject: [PATCH] Ride along: fix some trivial clippy warnings --- src/uucore/src/lib/features/mode.rs | 2 +- tests/by-util/test_mv.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uucore/src/lib/features/mode.rs b/src/uucore/src/lib/features/mode.rs index a54824d18..9435e3201 100644 --- a/src/uucore/src/lib/features/mode.rs +++ b/src/uucore/src/lib/features/mode.rs @@ -209,7 +209,7 @@ mod test { assert_eq!(super::parse_mode("u+x").unwrap(), 0o766); assert_eq!( 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("g-r").unwrap(), 0o626); diff --git a/tests/by-util/test_mv.rs b/tests/by-util/test_mv.rs index 019595735..f455c4e73 100644 --- a/tests/by-util/test_mv.rs +++ b/tests/by-util/test_mv.rs @@ -70,7 +70,7 @@ fn test_mv_move_file_into_dir_with_target_arg() { .succeeds() .no_stderr(); - assert!(at.file_exists(format!("{dir}/{file}"))) + assert!(at.file_exists(format!("{dir}/{file}"))); } #[test] @@ -88,7 +88,7 @@ fn test_mv_move_file_into_file_with_target_arg() { .fails() .stderr_is(format!("mv: target directory '{file1}': Not a directory\n")); - assert!(at.file_exists(file1)) + assert!(at.file_exists(file1)); } #[test]