mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
printf: fix clippy warnings
This commit is contained in:
parent
2aa8a3502f
commit
4e5a65ee41
1 changed files with 2 additions and 3 deletions
|
@ -47,9 +47,8 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|||
}
|
||||
|
||||
// See #5815 - We don't need to iter on args if no format string seen
|
||||
let format_seen = parse_spec_and_escape(format_string.as_ref())
|
||||
.into_iter()
|
||||
.any(|r| matches!(r, Ok(FormatItem::Spec(_))));
|
||||
let format_seen =
|
||||
parse_spec_and_escape(format_string.as_ref()).any(|r| matches!(r, Ok(FormatItem::Spec(_))));
|
||||
if !format_seen {
|
||||
return Ok(());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue