Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Aug 2, 2022
1 parent 41be225 commit 80f13bc
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ impl FormatFunction {

fn id(&self) -> SyntaxResult<Option<JsAnyBinding>> {
match self {
FormatFunction::JsFunctionDeclaration(declaration) => {
declaration.id().map(Some)
}
FormatFunction::JsFunctionDeclaration(declaration) => declaration.id().map(Some),
FormatFunction::JsFunctionExpression(expression) => Ok(expression.id()),
FormatFunction::JsFunctionExportDefaultDeclaration(declaration) => Ok(declaration.id()),
}
Expand Down

0 comments on commit 80f13bc

Please sign in to comment.