Skip to content

Commit

Permalink
refactor(transformer): pass ref to function (#3781)
Browse files Browse the repository at this point in the history
Tiny refactor. Pass `&TSEnumDeclaration` to function instead of `&Box<TSEnumDeclaration>` (which is a reference to a reference).
  • Loading branch information
overlookmotel committed Jun 20, 2024
1 parent 4bd2c88 commit 21b0d01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_transformer/src/typescript/enum.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use oxc_allocator::{Box, Vec};
use oxc_allocator::Vec;
use oxc_ast::{ast::*, visit::walk_mut, VisitMut};
use oxc_span::{Atom, SPAN};
use oxc_syntax::{
Expand Down Expand Up @@ -55,7 +55,7 @@ impl<'a> TypeScriptEnum<'a> {
/// ```
fn transform_ts_enum(
&mut self,
decl: &Box<'a, TSEnumDeclaration<'a>>,
decl: &TSEnumDeclaration<'a>,
is_export: bool,
ctx: &TraverseCtx<'a>,
) -> Option<Statement<'a>> {
Expand Down

0 comments on commit 21b0d01

Please sign in to comment.