Skip to content

Commit ccd5535

Browse files
committed
address clippy lints
1 parent b32ca57 commit ccd5535

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/format_args.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,11 @@ impl<'tcx> FormatArgsExpr<'_, 'tcx> {
348348
&& let Some((last_char_index, ')' | ']' | '}')) = chars.next()
349349
{
350350
let mut has_comma = false;
351-
while let Some((index, c)) = chars.next() {
351+
for (index, c) in chars {
352352
if c == ',' {
353353
has_comma = true;
354354
} else if c.is_whitespace() {
355-
continue;
355+
// keep iterating
356356
} else if has_comma {
357357
return Ok(span
358358
.with_lo(span.lo() + BytePos::from_usize(index + c.len_utf8()))

0 commit comments

Comments
 (0)