Revert "Always put the | in a has clause on a new line"

This reverts commit fd2ef1a3ce.
This commit is contained in:
Richard Feldman 2022-09-11 20:25:15 -04:00
parent 5d7213aa7d
commit be0c098b76
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -324,13 +324,7 @@ impl<'a> Formattable for TypeAnnotation<'a> {
Where(annot, has_clauses) => {
annot.format_with_options(buf, parens, newlines, indent);
// Always put the `|` on the next line, indented.
let indent = indent + INDENT;
buf.newline();
buf.indent(indent);
buf.spaces(1);
for (i, has) in has_clauses.iter().enumerate() {
buf.push(if i == 0 { '|' } else { ',' });
buf.spaces(1);