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

Commit

Permalink
Clippy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Aug 2, 2022
1 parent cc449eb commit 41be225
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl FormatFunction {
fn id(&self) -> SyntaxResult<Option<JsAnyBinding>> {
match self {
FormatFunction::JsFunctionDeclaration(declaration) => {
declaration.id().map(|binding| Some(binding))
declaration.id().map(Some)
}
FormatFunction::JsFunctionExpression(expression) => Ok(expression.id()),
FormatFunction::JsFunctionExportDefaultDeclaration(declaration) => Ok(declaration.id()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl FormatNodeRule<JsArrowFunctionExpression> for FormatJsArrowFunctionExpressi
| JsObjectExpression(_)
| JsxTagExpression(_) => true,
JsParenthesizedExpression(_) => true,
expr => is_simple_expression(&expr)?,
expr => is_simple_expression(expr)?,
},
};

Expand Down

0 comments on commit 41be225

Please sign in to comment.