1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 20:17:45 +00:00

Fix small clippy issue

Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>
This commit is contained in:
Hanif Ariffin 2022-02-03 21:45:02 +08:00
parent 9cd65c766a
commit 861437addf

View file

@ -58,11 +58,13 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let matches = uu_app().override_usage(&usage[..]).get_matches_from(args); let matches = uu_app().override_usage(&usage[..]).get_matches_from(args);
let files = matches.values_of_os(ARG_FILES).ok_or(USimpleError::new( let files = matches.values_of_os(ARG_FILES).ok_or_else(|| {
1, USimpleError::new(
r##"missing file operand 1,
r##"missing file operand
Try 'touch --help' for more information."##, Try 'touch --help' for more information."##,
))?; )
})?;
let (mut atime, mut mtime) = let (mut atime, mut mtime) =
if let Some(reference) = matches.value_of_os(options::sources::REFERENCE) { if let Some(reference) = matches.value_of_os(options::sources::REFERENCE) {