mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Fix outdenting in closures
This commit is contained in:
parent
54a0456c30
commit
7b9aa59d64
5 changed files with 63 additions and 1 deletions
|
@ -1872,7 +1872,6 @@ fn fmt_closure<'a>(
|
|||
};
|
||||
|
||||
if should_outdent {
|
||||
buf.spaces(1);
|
||||
sub_expr.format_with_options(buf, Parens::NotNeeded, Newlines::Yes, indent);
|
||||
} else {
|
||||
loc_ret.format_with_options(buf, Parens::NotNeeded, Newlines::Yes, body_indent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue