Skip to content

Commit 12deae1

Browse files
committed
lints
1 parent f2e96cc commit 12deae1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/uu/ls/src/colors.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,7 @@ fn parse_funky_string(
716716
}
717717
}
718718

719+
// current match list is much easier to read than nested or-patterns
719720
#[expect(clippy::unnested_or_patterns)]
720721
fn is_valid_ls_colors_prefix(label: [u8; 2]) -> bool {
721722
matches!(

tests/by-util/test_comm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// file that was distributed with this source code.
55
// spell-checker:ignore (words) defaultcheck nocheck helpb helpz nwordb nwordwordz wordtotal
66

7-
use std::fmt::Write as _;
87
use uutests::new_ucmd;
98
use uutests::util::TestScenario;
109
use uutests::util_name;
@@ -677,6 +676,7 @@ fn test_output_lossy_utf8() {
677676
#[test]
678677
#[cfg(any(target_os = "linux", target_os = "android"))]
679678
fn test_comm_anonymous_pipes() {
679+
use std::fmt::Write as _;
680680
use std::{io::Write, os::fd::AsRawFd, process};
681681
use uucore::pipes::pipe;
682682

0 commit comments

Comments
 (0)