diff --git a/src/func/hashing.rs b/src/func/hashing.rs index 9752196b..0f5af48f 100644 --- a/src/func/hashing.rs +++ b/src/func/hashing.rs @@ -74,12 +74,12 @@ impl BuildHasher for StraightHasherBuilder { } /// Create an instance of the default hasher. -#[inline] +#[inline(always)] #[must_use] pub fn get_hasher() -> ahash::AHasher { match config::hashing::get_ahash_seed() { - &Some([seed1, seed2, seed3, seed4]) if (seed1 | seed2 | seed3 | seed4) != 0 => { - ahash::RandomState::with_seeds(seed1, seed2, seed3, seed4).build_hasher() + Some([seed1, seed2, seed3, seed4]) if (seed1 | seed2 | seed3 | seed4) != 0 => { + ahash::RandomState::with_seeds(*seed1, *seed2, *seed3, *seed4).build_hasher() } _ => ahash::AHasher::default(), }