mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
Fix small clippy issue
Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>
This commit is contained in:
parent
9cd65c766a
commit
861437addf
1 changed files with 6 additions and 4 deletions
|
@ -58,11 +58,13 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|||
|
||||
let matches = uu_app().override_usage(&usage[..]).get_matches_from(args);
|
||||
|
||||
let files = matches.values_of_os(ARG_FILES).ok_or(USimpleError::new(
|
||||
1,
|
||||
r##"missing file operand
|
||||
let files = matches.values_of_os(ARG_FILES).ok_or_else(|| {
|
||||
USimpleError::new(
|
||||
1,
|
||||
r##"missing file operand
|
||||
Try 'touch --help' for more information."##,
|
||||
))?;
|
||||
)
|
||||
})?;
|
||||
|
||||
let (mut atime, mut mtime) =
|
||||
if let Some(reference) = matches.value_of_os(options::sources::REFERENCE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue