change PhantomData type for BuildHasherDefault

This commit is contained in:
Frank Steffahn 2022-01-07 00:39:48 +01:00
parent cfa4ac66c1
commit a043acd0b2

View File

@ -602,7 +602,7 @@ fn hash_one<T: Hash>(&self, x: T) -> u64
/// [`HashSet`]: ../../std/collections/struct.HashSet.html
/// [zero-sized]: https://doc.rust-lang.org/nomicon/exotic-sizes.html#zero-sized-types-zsts
#[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")]
impl<H> fmt::Debug for BuildHasherDefault<H> {