mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
tests: fix formating of test_touch.rs
Thanks to Sylvestre! Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
This commit is contained in:
co-authored by
Sylvestre Ledru
parent
a2f8084d48
commit
b703ec8795
@@ -34,7 +34,10 @@ fn set_file_times(at: &AtPath, path: &str, atime: FileTime, mtime: FileTime) {
|
||||
|
||||
fn str_to_filetime(format: &str, s: &str) -> FileTime {
|
||||
let tm = chrono::NaiveDateTime::parse_from_str(s, format).unwrap();
|
||||
FileTime::from_unix_time(tm.and_utc().timestamp(), tm.and_utc().timestamp_subsec_nanos())
|
||||
FileTime::from_unix_time(
|
||||
tm.and_utc().timestamp(),
|
||||
tm.and_utc().timestamp_subsec_nanos(),
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user