Skip to content

Commit 2b61f50

Browse files
committed
refactor(napi/parser): remove unnecessary #[estree(field_order)] attr (#14144)
`span` is now automatically moved to be last field, so no need to specify field order explicitly here.
1 parent fd299aa commit 2b61f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

napi/parser/src/raw_transfer_types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl From<Severity> for ErrorSeverity {
129129

130130
#[ast]
131131
#[generate_derive(ESTree)]
132-
#[estree(no_type, no_ts_def, field_order(message, span))]
132+
#[estree(no_type, no_ts_def)]
133133
pub struct ErrorLabel<'a> {
134134
pub message: Option<Atom<'a>>,
135135
pub span: Span,

0 commit comments

Comments
 (0)