From 557c1bebe9dbb57773b1aab4cc4f9d17cfc12494 Mon Sep 17 00:00:00 2001 From: branchseer Date: Sat, 28 Dec 2024 13:15:09 +0800 Subject: [PATCH] cargo fmt --- crates/oxc_parser/src/modifiers.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/oxc_parser/src/modifiers.rs b/crates/oxc_parser/src/modifiers.rs index 02f34821a51eb..0f36463370dee 100644 --- a/crates/oxc_parser/src/modifiers.rs +++ b/crates/oxc_parser/src/modifiers.rs @@ -110,7 +110,10 @@ impl Modifier { } #[inline] - pub fn try_from_token(tok: Token, lexer: &Lexer) -> std::result::Result>::Error> { + pub fn try_from_token( + tok: Token, + lexer: &Lexer, + ) -> std::result::Result>::Error> { ModifierKind::try_from(tok.kind).map(|kind| Self { span: lexer.token_span(tok), kind }) } }