mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 20:47: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
|
// 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())
|
let format_seen =
|
||||||
.into_iter()
|
parse_spec_and_escape(format_string.as_ref()).any(|r| matches!(r, Ok(FormatItem::Spec(_))));
|
||||||
.any(|r| matches!(r, Ok(FormatItem::Spec(_))));
|
|
||||||
if !format_seen {
|
if !format_seen {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue