Fix indentation within parens

This commit is contained in:
Joshua Warner 2021-11-30 17:55:50 -08:00
parent 68e206f42c
commit c0abf86f01
2 changed files with 21 additions and 1 deletions

View file

@ -139,7 +139,12 @@ impl<'a> Formattable<'a> for Expr<'a> {
sub_expr.format_with_options(buf, Parens::NotNeeded, Newlines::Yes, indent);
} else {
buf.push('(');
sub_expr.format_with_options(buf, Parens::NotNeeded, Newlines::Yes, indent);
sub_expr.format_with_options(
buf,
Parens::NotNeeded,
Newlines::Yes,
indent + INDENT,
);
buf.push(')');
}
}