add snapshot test for suffixed expr

This commit is contained in:
Luke Boswell 2024-03-14 12:04:39 +11:00
parent 9bc0ab79af
commit 8bbbd768ec
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
11 changed files with 19 additions and 0 deletions

View file

@ -107,6 +107,7 @@ impl<'a> Formattable for Expr<'a> {
Tuple(fields) => is_collection_multiline(fields),
RecordUpdate { fields, .. } => is_collection_multiline(fields),
RecordBuilder(fields) => is_collection_multiline(fields),
Suffixed(subexpr) => subexpr.is_multiline(),
}
}
@ -512,6 +513,7 @@ impl<'a> Formattable for Expr<'a> {
MultipleRecordBuilders { .. } => {}
UnappliedRecordBuilder { .. } => {}
IngestedFile(_, _) => {}
Suffixed(sub_expr) => sub_expr.format_with_options(buf, parens, newlines, indent),
}
}
}