Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/uu/stat/src/stat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1033,8 +1033,10 @@ impl Stater {
file: &OsString,
file_type: FileType,
from_user: bool,
#[cfg(feature = "selinux")] follow_symbolic_links: bool,
#[cfg(not(feature = "selinux"))] _: bool,
#[cfg(all(feature = "selinux", any(target_os = "linux", target_os = "android")))]
follow_symbolic_links: bool,
#[cfg(not(all(feature = "selinux", any(target_os = "linux", target_os = "android"))))]
_: bool,
) -> Result<(), i32> {
match *t {
Token::Byte(byte) => write_raw_byte(byte),
Expand Down
5 changes: 4 additions & 1 deletion src/uucore/src/lib/features/uptime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,10 @@ mod tests {
assert!(boot_time > 0, "Boot time should be positive");

// Boot time should be after 2000-01-01 (946684800 seconds since epoch)
assert!(boot_time > 946684800, "Boot time should be after year 2000");
assert!(
boot_time > 946_684_800,
"Boot time should be after year 2000"
);

// Boot time should be before current time
let now = Timestamp::now().as_second();
Expand Down
Loading