Skip to content

Commit aed1204

Browse files
authored
Merge pull request #299 from cuviper/refactor-entry
Refactor and shrink `Entry`
2 parents 282ba6e + e787b3d commit aed1204

File tree

6 files changed

+470
-410
lines changed

6 files changed

+470
-410
lines changed

src/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ impl<K, V, S> IndexMap<K, V, S>
462462
where
463463
S: BuildHasher,
464464
{
465-
fn hash<Q: ?Sized + Hash>(&self, key: &Q) -> HashValue {
465+
pub(crate) fn hash<Q: ?Sized + Hash>(&self, key: &Q) -> HashValue {
466466
let mut h = self.hash_builder.build_hasher();
467467
key.hash(&mut h);
468468
HashValue(h.finish() as usize)

0 commit comments

Comments
 (0)