cargo clippy --fix

This commit is contained in:
Lukas Wirth 2025-07-31 10:30:22 +02:00
parent 423c7dd23a
commit 8ce30264c8
186 changed files with 3056 additions and 3314 deletions

View file

@ -252,10 +252,10 @@ fn n_attached_trivias<'a>(
WHITESPACE if text.contains("\n\n") => {
// we check whether the next token is a doc-comment
// and skip the whitespace in this case
if let Some((COMMENT, peek_text)) = trivias.peek().map(|(_, pair)| pair) {
if is_outer(peek_text) {
continue;
}
if let Some((COMMENT, peek_text)) = trivias.peek().map(|(_, pair)| pair)
&& is_outer(peek_text)
{
continue;
}
break;
}