diff --git a/crates/oxc_isolated_declarations/src/class.rs b/crates/oxc_isolated_declarations/src/class.rs index 2f03e7a1f390bf..49d40ca8a19f36 100644 --- a/crates/oxc_isolated_declarations/src/class.rs +++ b/crates/oxc_isolated_declarations/src/class.rs @@ -547,7 +547,7 @@ impl<'a> IsolatedDeclarations<'a> { &self, kind: BindingPatternKind<'a>, ) -> Box<'a, FormalParameters<'a>> { - let pattern = self.ast.binding_pattern(kind, None::>, false); + let pattern = self.ast.binding_pattern(kind, NONE, false); let parameter = self.ast.formal_parameter(SPAN, self.ast.vec(), pattern, None, false, false); let items = self.ast.vec1(parameter); diff --git a/crates/oxc_isolated_declarations/src/module.rs b/crates/oxc_isolated_declarations/src/module.rs index 8722d05f7ab0f1..061aad0ebf512e 100644 --- a/crates/oxc_isolated_declarations/src/module.rs +++ b/crates/oxc_isolated_declarations/src/module.rs @@ -1,7 +1,7 @@ use oxc_allocator::Box; use oxc_allocator::CloneIn; use oxc_allocator::Vec; -use oxc_ast::ast::*; +use oxc_ast::{ast::*, NONE}; use oxc_span::{Atom, GetSpan, SPAN}; use crate::{diagnostics::default_export_inferred, IsolatedDeclarations}; @@ -19,7 +19,7 @@ impl<'a> IsolatedDeclarations<'a> { self.ast.vec(), None, ImportOrExportKind::Value, - None::, + NONE, )) }