Update formatter has -> implements

This commit is contained in:
Bryce Miller 2023-05-21 19:03:53 -04:00
parent 43e6cf6f90
commit 95516d585a
No known key found for this signature in database
GPG key ID: F1E97BF8DF152350

View file

@ -654,7 +654,7 @@ impl<'a> Formattable for ImplementsClause<'a> {
fn format_with_options(&self, buf: &mut Buf, parens: Parens, newlines: Newlines, indent: u16) {
buf.push_str(self.var.value.extract_spaces().item);
buf.spaces(1);
buf.push_str("has");
buf.push_str("implements");
buf.spaces(1);
for (i, ab) in self.abilities.iter().enumerate() {
@ -753,7 +753,7 @@ impl<'a> Formattable for ImplementsAbilities<'a> {
buf.newline();
buf.indent(indent);
}
buf.push_str("has");
buf.push_str("implements");
buf.spaces(1);
fmt_collection(buf, indent, Braces::Square, *has_abilities, Newlines::No);
}