Skip to content

Commit 21b0d01

Browse files
committed
refactor(transformer): pass ref to function (#3781)
Tiny refactor. Pass `&TSEnumDeclaration` to function instead of `&Box<TSEnumDeclaration>` (which is a reference to a reference).
1 parent 4bd2c88 commit 21b0d01

File tree

1 file changed

+2
-2
lines changed
  • crates/oxc_transformer/src/typescript

1 file changed

+2
-2
lines changed

crates/oxc_transformer/src/typescript/enum.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use oxc_allocator::{Box, Vec};
1+
use oxc_allocator::Vec;
22
use oxc_ast::{ast::*, visit::walk_mut, VisitMut};
33
use oxc_span::{Atom, SPAN};
44
use oxc_syntax::{
@@ -55,7 +55,7 @@ impl<'a> TypeScriptEnum<'a> {
5555
/// ```
5656
fn transform_ts_enum(
5757
&mut self,
58-
decl: &Box<'a, TSEnumDeclaration<'a>>,
58+
decl: &TSEnumDeclaration<'a>,
5959
is_export: bool,
6060
ctx: &TraverseCtx<'a>,
6161
) -> Option<Statement<'a>> {

0 commit comments

Comments
 (0)