Skip to content

Commit 93272dc

Browse files
committed
Fix some compile errors
Signed-off-by: Tom Kaitchuck <Tom.Kaitchuck@gmail.com>
1 parent 2ee96c0 commit 93272dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/random_state.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use core::any::{Any, TypeId};
2929
use core::fmt;
3030
use core::hash::BuildHasher;
3131
use core::hash::Hasher;
32-
use std::marker::PhantomData;
32+
use core::marker::PhantomData;
3333

3434
pub(crate) const PI: [u64; 4] = [
3535
0x243f_6a88_85a3_08d3,

src/specialize.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ pub(crate) trait CallHasher<T> {
2121
}
2222

2323
#[cfg(not(feature = "specialize"))]
24-
impl<T> CallHasher for T {
24+
impl<T> CallHasher<T> for T {
2525
#[inline]
26-
fn get_hash<H: Hash + ?Sized, B: BuildHasher>(value: &H, build_hasher: &B) -> u64 {
26+
fn get_hash<H: Hash + ?Sized>(value: &H, build_hasher: &RandomState<T>) -> u64 {
2727
let mut hasher = build_hasher.build_hasher();
2828
value.hash(&mut hasher);
2929
hasher.finish()

0 commit comments

Comments
 (0)