This commit is contained in:
Pierre-Henri Trivier 2022-03-04 23:35:53 +01:00
parent cfccb92bf9
commit 1d3aa26193
2 changed files with 15 additions and 0 deletions

View file

@ -293,6 +293,9 @@ impl<'a> Formattable for TypeAnnotation<'a> {
SpaceBefore(ann, spaces) => {
buf.newline();
buf.indent(indent);
fmt_comments_only(buf, spaces.iter(), NewlineAt::Bottom, indent);
ann.format_with_options(buf, parens, Newlines::No, indent)
}