Skip to content

Commit

Permalink
should not use clone_in
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Aug 13, 2024
1 parent d0166f7 commit ad0b040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_transformer/src/react/refresh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -797,10 +797,10 @@ impl<'a> ReactRefresh<'a> {
}

let (binding_identifier, mut arguments) = signature;
arguments.insert(0, Argument::from(expr.clone_in(ctx.ast.allocator)));
arguments.insert(0, Argument::from(ctx.ast.move_expression(expr)));
*expr = self.ctx.ast.expression_call(
SPAN,
arguments.clone_in(ctx.ast.allocator),
arguments,
Self::create_identifier_reference_from_binding_identifier(&binding_identifier, ctx),
Option::<TSTypeParameterInstantiation>::None,
false,
Expand Down

0 comments on commit ad0b040

Please sign in to comment.