mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Remove parentheses from unapplied tags
This commit is contained in:
parent
52ac6063ca
commit
051b511d87
2 changed files with 17 additions and 7 deletions
|
@ -199,7 +199,7 @@ impl<'a> Formattable<'a> for Expr<'a> {
|
|||
buf.push_str(name);
|
||||
}
|
||||
Apply(loc_expr, loc_args, _) => {
|
||||
if apply_needs_parens {
|
||||
if apply_needs_parens && !loc_args.is_empty() {
|
||||
buf.push('(');
|
||||
}
|
||||
|
||||
|
@ -221,7 +221,7 @@ impl<'a> Formattable<'a> for Expr<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
if apply_needs_parens {
|
||||
if apply_needs_parens && !loc_args.is_empty() {
|
||||
buf.push(')');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue