diff --git a/crates/oxc_span/src/hash.rs b/crates/oxc_span/src/hash.rs index eee15b72d9556..fba0e635ffbae 100644 --- a/crates/oxc_span/src/hash.rs +++ b/crates/oxc_span/src/hash.rs @@ -1,6 +1,5 @@ -use core::hash::Hasher; use std::{ - hash::Hash, + hash::{Hash, Hasher}, mem::{discriminant, Discriminant}, }; @@ -53,11 +52,12 @@ impl<'a, T: ContentHash> ContentHash for oxc_allocator::Vec<'a, T> { mod auto_impl_content_hash { use super::ContentHash; + macro_rules! impl_content_hash { ($($t:ty)*) => { $( impl ContentHash for $t { - fn content_hash(&self, state: &mut H) { + fn content_hash(&self, state: &mut H) { std::hash::Hash::hash(self, state); } }