Skip to content

Commit

Permalink
Implement HashSet in terms of hashbrown::HashSet
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrubeck committed Sep 9, 2020
1 parent 15ccdeb commit ebd15e7
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 72 deletions.
2 changes: 1 addition & 1 deletion library/std/src/collections/hash/map.rs
Expand Up @@ -2698,7 +2698,7 @@ fn map_entry<'a, K: 'a, V: 'a>(raw: base::RustcEntry<'a, K, V>) -> Entry<'a, K,
}

#[inline]
fn map_try_reserve_error(err: hashbrown::TryReserveError) -> TryReserveError {
pub(super) fn map_try_reserve_error(err: hashbrown::TryReserveError) -> TryReserveError {
match err {
hashbrown::TryReserveError::CapacityOverflow => TryReserveError::CapacityOverflow,
hashbrown::TryReserveError::AllocError { layout } => {
Expand Down

0 comments on commit ebd15e7

Please sign in to comment.