1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

chore: run cargo +nightly clippy --fix

This commit is contained in:
Niyaz Nigmatullin 2022-11-15 17:57:08 +02:00
parent c3218740dc
commit fdd6a05259
9 changed files with 31 additions and 31 deletions

View file

@ -621,7 +621,7 @@ fn test_mv_update_option() {
at.touch(file_b);
let ts = time::OffsetDateTime::now_local().unwrap();
let now = FileTime::from_unix_time(ts.unix_timestamp(), ts.nanosecond());
let later = FileTime::from_unix_time(ts.unix_timestamp() as i64 + 3600, ts.nanosecond() as u32);
let later = FileTime::from_unix_time(ts.unix_timestamp() + 3600, ts.nanosecond());
filetime::set_file_times(at.plus_as_string(file_a), now, now).unwrap();
filetime::set_file_times(at.plus_as_string(file_b), now, later).unwrap();