Remove redundant space in aliases

This commit is contained in:
Joshua Warner 2021-12-21 17:24:44 -08:00
parent 4fed812389
commit 6786acb939
15 changed files with 24 additions and 28 deletions

View file

@ -59,13 +59,9 @@ impl<'a> Formattable for Def<'a> {
buf.indent(indent);
buf.push_str(name.value);
if vars.is_empty() {
for var in *vars {
buf.spaces(1);
} else {
for var in *vars {
buf.spaces(1);
fmt_pattern(buf, &var.value, indent, Parens::NotNeeded);
}
fmt_pattern(buf, &var.value, indent, Parens::NotNeeded);
}
buf.push_str(" :");