diff --git a/crates/oxc_allocator/src/boxed.rs b/crates/oxc_allocator/src/boxed.rs index a334d5cc1d9ac..bb2f9fd538ce3 100644 --- a/crates/oxc_allocator/src/boxed.rs +++ b/crates/oxc_allocator/src/boxed.rs @@ -70,6 +70,12 @@ impl<'alloc, T: ?Sized> AsRef for Box<'alloc, T> { } } +impl<'alloc, T: ?Sized> AsMut for Box<'alloc, T> { + fn as_mut(&mut self) -> &mut T { + self + } +} + impl<'alloc, T: ?Sized + Debug> Debug for Box<'alloc, T> { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { self.deref().fmt(f)