mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-20 15:27:45 +03:00
Update compiler/fmt/src/def.rs
This commit is contained in:
parent
65c1e0e5b1
commit
ef90103353
@ -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…
Reference in New Issue
Block a user