refactor: run fmt

This commit is contained in:
Boshen 2024-05-12 01:20:41 +08:00
parent c5588c9b1c
commit 1b4ebb3166
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1

View file

@ -260,7 +260,8 @@ pub fn constructor_generator(span0: Span) -> OxcDiagnostic {
#[cold] #[cold]
pub fn field_constructor(span0: Span) -> OxcDiagnostic { pub fn field_constructor(span0: Span) -> OxcDiagnostic {
OxcDiagnostic::error("Classes can't have a field named 'constructor'").with_labels([span0.into()]) OxcDiagnostic::error("Classes can't have a field named 'constructor'")
.with_labels([span0.into()])
} }
#[cold] #[cold]
@ -385,8 +386,10 @@ pub fn await_using_declaration_not_allowed_in_for_in_statement(span0: Span) -> O
#[cold] #[cold]
pub fn using_declaration_not_allowed_in_for_in_statement(span0: Span) -> OxcDiagnostic { pub fn using_declaration_not_allowed_in_for_in_statement(span0: Span) -> OxcDiagnostic {
OxcDiagnostic::error("The left-hand side of a for...in statement cannot be an using declaration.") OxcDiagnostic::error(
.with_labels([span0.into()]) "The left-hand side of a for...in statement cannot be an using declaration.",
)
.with_labels([span0.into()])
} }
#[cold] #[cold]