mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Update compiler/fmt/src/def.rs
This commit is contained in:
parent
65c1e0e5b1
commit
ef90103353
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ impl<'a> Formattable<'a> for Def<'a> {
|
|||
loc_pattern.is_multiline() || loc_annotation.is_multiline()
|
||||
}
|
||||
Body(loc_pattern, loc_expr) => loc_pattern.is_multiline() || loc_expr.is_multiline(),
|
||||
AnnotatedBody { .. } => true, // Sebbes: not really sure here...
|
||||
AnnotatedBody { .. } => true,
|
||||
SpaceBefore(sub_def, spaces) | SpaceAfter(sub_def, spaces) => {
|
||||
spaces.iter().any(|s| is_comment(s)) || sub_def.is_multiline()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue