Skip to content

Commit 802c2f5

Browse files
committed
style: fix clippy warning.
1 parent b8a1808 commit 802c2f5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fmt/src/tokens/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,7 @@ pub(crate) trait TokenStream<'a>: Iterator<Item = Token<'a>> {
418418
| Token::RGrouping(_)
419419
| Token::Punctuation(_) => {
420420
w.write_all(token.as_bytes())?;
421-
for _ in 0..token.len() {
422-
indent.push(b' ');
423-
}
421+
indent.extend(std::iter::repeat_n(b' ', token.len()));
424422
}
425423

426424
Token::BlockComment(lines)

0 commit comments

Comments
 (0)