mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
clippy: fix unnecessary_cast lint
https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
This commit is contained in:
committed by
Daniel Hofstetter
parent
e88a3063a6
commit
42e668545f
@@ -521,11 +521,9 @@ mod tests {
|
||||
);
|
||||
|
||||
// Boot time should be before current time
|
||||
let now = Timestamp::now().as_second();
|
||||
assert!(
|
||||
(boot_time as i64) < now,
|
||||
"Boot time should be before current time"
|
||||
);
|
||||
let boot_time = Timestamp::from_second(boot_time).unwrap();
|
||||
let now = Timestamp::now();
|
||||
assert!(boot_time < now, "Boot time should be before current time");
|
||||
}
|
||||
|
||||
/// Test that get_uptime always succeeds on macOS due to sysctl fallback.
|
||||
|
||||
Reference in New Issue
Block a user