Merge remote-tracking branch 'origin/trunk' into parse-expr-defs-soa

This commit is contained in:
Folkert 2022-06-01 13:15:39 +02:00
commit 8b72782ea2
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
8 changed files with 210 additions and 102 deletions

View file

@ -145,7 +145,10 @@ impl<'a> Formattable for Expr<'a> {
}
let next_indent = if starts_with_newline(sub_expr) || should_add_newlines {
indent + INDENT
match sub_expr {
Expr::Closure(..) | Expr::SpaceAfter(Closure(..), ..) => indent,
_ => indent + INDENT,
}
} else {
indent
};