mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Clippy
This commit is contained in:
parent
8c77a54b4f
commit
2bb3b84ce7
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ fn format_expr_only(
|
|||
}
|
||||
Expr::Apply(loc_expr, loc_args, _) => {
|
||||
let apply_needs_parens = parens == Parens::InApply || parens == Parens::InApplyLastArg;
|
||||
if buf.flags().parens_and_commas || !(apply_needs_parens && !loc_args.is_empty()) {
|
||||
if buf.flags().parens_and_commas || !apply_needs_parens || loc_args.is_empty() {
|
||||
fmt_apply(loc_expr, loc_args, indent, buf, false);
|
||||
} else {
|
||||
fmt_parens(item, buf, indent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue