Don't over-indent type alias defs

This commit is contained in:
Richard Feldman 2022-07-06 13:54:50 -04:00
parent 23a02a7a75
commit 01434c8e28
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798

View file

@ -74,7 +74,7 @@ impl<'a> Formattable for TypeDef<'a> {
buf.push_str(" :");
buf.spaces(1);
ann.format(buf, indent + INDENT)
ann.format(buf, indent)
}
Opaque {
header: TypeHeader { name, vars },
@ -113,7 +113,7 @@ impl<'a> Formattable for TypeDef<'a> {
buf.indent(indent + INDENT);
}
ann.format(buf, indent + INDENT);
ann.format(buf, indent);
if let Some(derived) = derived {
if !make_multiline {