Use more const functions.

This commit is contained in:
Stephen Chung
2021-11-27 14:24:06 +08:00
parent 280b5b405e
commit abe6b4a29b
7 changed files with 19 additions and 14 deletions

View File

@@ -49,7 +49,7 @@ impl BuildHasher for StraightHasherBuilder {
#[inline(always)]
#[must_use]
pub fn get_hasher() -> ahash::AHasher {
Default::default()
ahash::AHasher::default()
}
/// Calculate a [`u64`] hash key from a namespace-qualified variable name.