Skip to content

Commit c5585bd

Browse files
committed
atom: Use the same hash everywhere.
This will allow me to write a "no-op" hasher that expects a single u32 in the style system, to avoid hashing the hash again.
1 parent 88d65e7 commit c5585bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/atom.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ impl<Static: StaticAtomSet> Default for Atom<Static> {
268268
impl<Static: StaticAtomSet> Hash for Atom<Static> {
269269
#[inline]
270270
fn hash<H>(&self, state: &mut H) where H: Hasher {
271-
self.unsafe_data.hash(state)
271+
state.write_u32(self.get_hash())
272272
}
273273
}
274274

0 commit comments

Comments
 (0)