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

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Aug 29, 2022
1 parent e1078d8 commit be91c58
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl FormatNodeRule<JsArrowFunctionExpression> for FormatJsArrowFunctionExpressi
) -> FormatResult<()> {
let layout = ArrowFunctionLayout::for_arrow(
node.clone(),
&f.context().comments(),
f.context().comments(),
self.assignment_layout,
)?;

Expand Down Expand Up @@ -161,7 +161,7 @@ impl FormatNodeRule<JsArrowFunctionExpression> for FormatJsArrowFunctionExpressi
}

/// writes the arrow function type parameters, parameters, and return type annotation
fn format_signature<'a>(arrow: &'a JsArrowFunctionExpression) -> impl Format<JsFormatContext> + 'a {
fn format_signature(arrow: &JsArrowFunctionExpression) -> impl Format<JsFormatContext> + '_ {
format_with(|f| {
if let Some(async_token) = arrow.async_token() {
write!(f, [async_token.format(), space()])?;
Expand Down Expand Up @@ -251,12 +251,12 @@ enum ArrowFunctionLayout {
///
/// ```javascript
/// const x =
/// (a): string =>
/// (b) =>
/// (c) =>
/// (d) =>
/// (e) =>
/// f;
/// (a): string =>
/// (b) =>
/// (c) =>
/// (d) =>
/// (e) =>
/// f;
/// ```
Chain(ArrowChain),
}
Expand Down

0 comments on commit be91c58

Please sign in to comment.