Skip to content

Commit a043acd

Browse files
committed
change PhantomData type for BuildHasherDefault
1 parent cfa4ac6 commit a043acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/hash/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ pub trait BuildHasher {
602602
/// [`HashSet`]: ../../std/collections/struct.HashSet.html
603603
/// [zero-sized]: https://doc.rust-lang.org/nomicon/exotic-sizes.html#zero-sized-types-zsts
604604
#[stable(since = "1.7.0", feature = "build_hasher")]
605-
pub struct BuildHasherDefault<H>(marker::PhantomData<H>);
605+
pub struct BuildHasherDefault<H>(marker::PhantomData<fn() -> H>);
606606

607607
#[stable(since = "1.9.0", feature = "core_impl_debug")]
608608
impl<H> fmt::Debug for BuildHasherDefault<H> {

0 commit comments

Comments
 (0)