refactor(transformer): pass ref to function (#3781)

Tiny refactor. Pass `&TSEnumDeclaration` to function instead of `&Box<TSEnumDeclaration>` (which is a reference to a reference).
This commit is contained in:
overlookmotel 2024-06-20 01:33:09 +00:00
parent 4bd2c882d3
commit 21b0d0196b

View file

@ -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::{
@ -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>> {