Change TypeId to use BTreeMap.

This commit is contained in:
Stephen Chung
2022-09-05 21:17:07 +08:00
parent 0f4df9c4e7
commit 158b4ce7bc
2 changed files with 8 additions and 8 deletions

View File

@@ -47,11 +47,11 @@ impl Hasher for StraightHasher {
fn finish(&self) -> u64 {
self.0
}
#[inline]
#[inline(always)]
fn write(&mut self, _bytes: &[u8]) {
panic!("StraightHasher can only hash u64 values");
}
#[inline(always)]
fn write_u64(&mut self, i: u64) {
if i == 0 {
self.0 = ALT_ZERO_HASH;