Skip to content

Commit e239a59

Browse files
committed
clippy: fix lints
1 parent 1e95554 commit e239a59

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/uu/stat/src/stat.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,8 +1033,10 @@ impl Stater {
10331033
file: &OsString,
10341034
file_type: FileType,
10351035
from_user: bool,
1036-
#[cfg(feature = "selinux")] follow_symbolic_links: bool,
1037-
#[cfg(not(feature = "selinux"))] _: bool,
1036+
#[cfg(all(feature = "selinux", any(target_os = "linux", target_os = "android")))]
1037+
follow_symbolic_links: bool,
1038+
#[cfg(not(all(feature = "selinux", any(target_os = "linux", target_os = "android"))))]
1039+
_: bool,
10381040
) -> Result<(), i32> {
10391041
match *t {
10401042
Token::Byte(byte) => write_raw_byte(byte),

src/uucore/src/lib/features/uptime.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,10 @@ mod tests {
511511
assert!(boot_time > 0, "Boot time should be positive");
512512

513513
// Boot time should be after 2000-01-01 (946684800 seconds since epoch)
514-
assert!(boot_time > 946684800, "Boot time should be after year 2000");
514+
assert!(
515+
boot_time > 946_684_800,
516+
"Boot time should be after year 2000"
517+
);
515518

516519
// Boot time should be before current time
517520
let now = Timestamp::now().as_second();

0 commit comments

Comments
 (0)