change PhantomData type for BuildHasherDefault
This commit is contained in:
parent
cfa4ac66c1
commit
a043acd0b2
@ -602,7 +602,7 @@ fn hash_one<T: Hash>(&self, x: T) -> u64
|
|||||||
/// [`HashSet`]: ../../std/collections/struct.HashSet.html
|
/// [`HashSet`]: ../../std/collections/struct.HashSet.html
|
||||||
/// [zero-sized]: https://doc.rust-lang.org/nomicon/exotic-sizes.html#zero-sized-types-zsts
|
/// [zero-sized]: https://doc.rust-lang.org/nomicon/exotic-sizes.html#zero-sized-types-zsts
|
||||||
#[stable(since = "1.7.0", feature = "build_hasher")]
|
#[stable(since = "1.7.0", feature = "build_hasher")]
|
||||||
pub struct BuildHasherDefault<H>(marker::PhantomData<H>);
|
pub struct BuildHasherDefault<H>(marker::PhantomData<fn() -> H>);
|
||||||
|
|
||||||
#[stable(since = "1.9.0", feature = "core_impl_debug")]
|
#[stable(since = "1.9.0", feature = "core_impl_debug")]
|
||||||
impl<H> fmt::Debug for BuildHasherDefault<H> {
|
impl<H> fmt::Debug for BuildHasherDefault<H> {
|
||||||
|
Loading…
Reference in New Issue
Block a user