mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
pr: rustfmt test_pr.rs and utils.rs
This commit is contained in:
parent
bc1870c0a7
commit
b0bf3e7e0f
2 changed files with 13 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
use crate::common::util::*;
|
||||
use std::fs::metadata;
|
||||
use chrono::offset::Local;
|
||||
use chrono::DateTime;
|
||||
use std::fs::metadata;
|
||||
|
||||
fn file_last_modified_time(ucmd: &UCommand, path: &str) -> String {
|
||||
let tmp_dir_path = ucmd.get_full_fixture_path(path);
|
||||
|
@ -245,7 +245,10 @@ fn test_with_no_header_trailer_option() {
|
|||
scenario
|
||||
.args(&["-t", test_file_path])
|
||||
.succeeds()
|
||||
.stdout_is_templated_fixture(expected_test_file_path, vec![(&"{last_modified_time}".to_string(), &value)]);
|
||||
.stdout_is_templated_fixture(
|
||||
expected_test_file_path,
|
||||
vec![(&"{last_modified_time}".to_string(), &value)],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue