Merge pull request #6246 from bin-ly/main

Fix warning when executing Clippy
This commit is contained in:
Daniel Hofstetter 2024-04-17 17:41:21 +02:00 committed by GitHub
commit 57388a9627
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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::<Vec<&str>>();
assert!(signals.contains(&"KILL"));