mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
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:
parent
4bd2c882d3
commit
21b0d0196b
1 changed files with 2 additions and 2 deletions
|
|
@ -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>> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue