Skip to content

Commit

Permalink
Merge pull request #299 from cuviper/refactor-entry
Browse files Browse the repository at this point in the history
Refactor and shrink `Entry`
  • Loading branch information
cuviper authored Jan 24, 2024
2 parents 282ba6e + e787b3d commit aed1204
Show file tree
Hide file tree
Showing 6 changed files with 470 additions and 410 deletions.
2 changes: 1 addition & 1 deletion src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ impl<K, V, S> IndexMap<K, V, S>
where
S: BuildHasher,
{
fn hash<Q: ?Sized + Hash>(&self, key: &Q) -> HashValue {
pub(crate) fn hash<Q: ?Sized + Hash>(&self, key: &Q) -> HashValue {
let mut h = self.hash_builder.build_hasher();
key.hash(&mut h);
HashValue(h.finish() as usize)
Expand Down
Loading

0 comments on commit aed1204

Please sign in to comment.