1
Fork 0
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:
Sudhakar Verma 2024-01-12 16:23:38 +05:30
parent 2aa8a3502f
commit 4e5a65ee41

View file

@ -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(());
}