Skip to content

Commit

Permalink
fix: clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Aug 23, 2024
1 parent 1231af5 commit d926585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_transformer/src/es2018/object_spread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl<'a> ObjectSpread<'a> {
Expression::from(ctx.ast.member_expression_static(SPAN, object, property, false))
}

fn babel_external_helper(&mut self, ctx: &mut TraverseCtx<'a>) -> Expression<'a> {
fn babel_external_helper(ctx: &mut TraverseCtx<'a>) -> Expression<'a> {
let ident =
ctx.create_reference_id(SPAN, ctx.ast.atom("babelHelpers"), None, ReferenceFlags::Read);
let object = ctx.ast.expression_from_identifier_reference(ident);
Expand All @@ -133,7 +133,7 @@ impl<'a> ObjectSpread<'a> {
if self.options.set_spread_properties {
Self::object_assign(ctx)
} else {
self.babel_external_helper(ctx)
Self::babel_external_helper(ctx)
}
}
}

0 comments on commit d926585

Please sign in to comment.