From 9d1d4cc5f6333ac98823055561b44a60677859d0 Mon Sep 17 00:00:00 2001 From: binlingyu Date: Wed, 17 Apr 2024 11:14:03 +0800 Subject: [PATCH] Fix warning when executing Clippy --- tests/by-util/test_chmod.rs | 2 +- tests/by-util/test_kill.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/by-util/test_chmod.rs b/tests/by-util/test_chmod.rs index 35197f85e..1a7c3346b 100644 --- a/tests/by-util/test_chmod.rs +++ b/tests/by-util/test_chmod.rs @@ -278,7 +278,7 @@ fn test_chmod_many_options() { #[test] #[allow(clippy::unreadable_literal)] fn test_chmod_reference_file() { - let tests = vec![ + let tests = [ TestCase { args: vec!["--reference", REFERENCE_FILE, TEST_FILE], before: 0o100070, diff --git a/tests/by-util/test_kill.rs b/tests/by-util/test_kill.rs index 4a6dd017b..a664ff009 100644 --- a/tests/by-util/test_kill.rs +++ b/tests/by-util/test_kill.rs @@ -98,7 +98,7 @@ fn test_kill_table_lists_all_vertically() { let signals = command .stdout_str() .split('\n') - .flat_map(|line| line.trim().split(" ").nth(1)) + .flat_map(|line| line.trim().split(' ').nth(1)) .collect::>(); assert!(signals.contains(&"KILL"));