Skip to content

Commit

Permalink
Add default allocator parameters for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Marwes committed Jan 14, 2021
1 parent d033e84 commit 3faab35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,7 @@ pub struct RawEntryBuilderMut<'a, K, V, S, A: Allocator + Clone = Global> {
/// [`Entry`]: enum.Entry.html
/// [`raw_entry_mut`]: struct.HashMap.html#method.raw_entry_mut
/// [`RawEntryBuilderMut`]: struct.RawEntryBuilderMut.html
pub enum RawEntryMut<'a, K, V, S, A: Allocator + Clone> {
pub enum RawEntryMut<'a, K, V, S, A: Allocator + Clone = Global> {
/// An occupied entry.
Occupied(RawOccupiedEntryMut<'a, K, V, S, A>),
/// A vacant entry.
Expand Down
4 changes: 2 additions & 2 deletions src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ impl<T> Bucket<T> {
}

/// A raw hash table with an unsafe API.
pub struct RawTable<T, A: Allocator + Clone> {
pub struct RawTable<T, A: Allocator + Clone = Global> {
table: RawTableInner<A>,
// Tell dropck that we own instances of T.
marker: PhantomData<T>,
Expand Down Expand Up @@ -1879,7 +1879,7 @@ impl<T> RawIter<T> {
// We should not have changed what bucket comes next.
debug_assert_eq!(self.iter.current_group.lowest_set_bit(), Some(index));
}
}
a
}
} else {
// We must have already iterated past the removed item.
Expand Down

0 comments on commit 3faab35

Please sign in to comment.