diff --git a/crates/oxc_allocator/src/address.rs b/crates/oxc_allocator/src/address.rs index d6c29b8d95b0b..1fafc9b4fc6a2 100644 --- a/crates/oxc_allocator/src/address.rs +++ b/crates/oxc_allocator/src/address.rs @@ -43,3 +43,11 @@ impl<'a, T> GetAddress for Box<'a, T> { Address::from_ptr(ptr::addr_of!(**self)) } } + +impl GetAddress for Address { + /// Address of an `Address` is itself. + #[inline] + fn address(&self) -> Address { + *self + } +}