mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
Revert "Special-case records, lists, functions in def fmt"
This reverts commit c0b4ceea9b1d817c923eb82fa3ff7a36db90199f.
This commit is contained in:
parent
2be68189b4
commit
fa877e4184
1 changed files with 0 additions and 13 deletions
|
@ -348,19 +348,6 @@ pub fn fmt_body<'a, 'buf>(
|
|||
);
|
||||
}
|
||||
}
|
||||
Expr::Record { .. } | Expr::List { .. } | Expr::Closure(_, _) => {
|
||||
if body.is_multiline() {
|
||||
buf.spaces(1);
|
||||
body.format_with_options(buf, Parens::NotNeeded, Newlines::Yes, indent);
|
||||
} else {
|
||||
body.format_with_options(
|
||||
buf,
|
||||
Parens::NotNeeded,
|
||||
Newlines::Yes,
|
||||
indent + INDENT,
|
||||
);
|
||||
}
|
||||
}
|
||||
Expr::BinOps(_, _) => {
|
||||
// Binop chains always get a newline. Otherwise you can have things like:
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue