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

Fix warning when executing Clippy

This commit is contained in:
binlingyu 2024-04-17 11:14:03 +08:00
parent e194022c1f
commit 9d1d4cc5f6
2 changed files with 2 additions and 2 deletions

View file

@ -278,7 +278,7 @@ fn test_chmod_many_options() {
#[test] #[test]
#[allow(clippy::unreadable_literal)] #[allow(clippy::unreadable_literal)]
fn test_chmod_reference_file() { fn test_chmod_reference_file() {
let tests = vec![ let tests = [
TestCase { TestCase {
args: vec!["--reference", REFERENCE_FILE, TEST_FILE], args: vec!["--reference", REFERENCE_FILE, TEST_FILE],
before: 0o100070, before: 0o100070,

View file

@ -98,7 +98,7 @@ fn test_kill_table_lists_all_vertically() {
let signals = command let signals = command
.stdout_str() .stdout_str()
.split('\n') .split('\n')
.flat_map(|line| line.trim().split(" ").nth(1)) .flat_map(|line| line.trim().split(' ').nth(1))
.collect::<Vec<&str>>(); .collect::<Vec<&str>>();
assert!(signals.contains(&"KILL")); assert!(signals.contains(&"KILL"));