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

Merge pull request #4146 from niyaznigmatullin/clippy_fix

Run `cargo +nightly clippy --fix`
This commit is contained in:
Sylvestre Ledru 2022-11-17 10:33:40 +01:00 committed by GitHub
commit c00fc0a8c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 31 additions and 31 deletions

View file

@ -1103,7 +1103,7 @@ fn test_cp_no_deref_folder_to_folder() {
fn test_cp_archive() {
let (at, mut ucmd) = at_and_ucmd!();
let ts = time::OffsetDateTime::now_local().unwrap();
let previous = FileTime::from_unix_time(ts.unix_timestamp() - 3600, ts.nanosecond() as u32);
let previous = FileTime::from_unix_time(ts.unix_timestamp() - 3600, ts.nanosecond());
// set the file creation/modification an hour ago
filetime::set_file_times(
at.plus_as_string(TEST_HELLO_WORLD_SOURCE),