Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
branchseer committed Dec 28, 2024
1 parent c3d0ec3 commit 557c1be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/oxc_parser/src/modifiers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ impl Modifier {
}

#[inline]
pub fn try_from_token(tok: Token, lexer: &Lexer) -> std::result::Result<Self, <ModifierKind as TryFrom<Kind>>::Error> {
pub fn try_from_token(
tok: Token,
lexer: &Lexer,
) -> std::result::Result<Self, <ModifierKind as TryFrom<Kind>>::Error> {
ModifierKind::try_from(tok.kind).map(|kind| Self { span: lexer.token_span(tok), kind })
}
}
Expand Down

0 comments on commit 557c1be

Please sign in to comment.