Skip to content

Commit 3faab35

Browse files
committed
Add default allocator parameters for compatibility
1 parent d033e84 commit 3faab35

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,7 @@ pub struct RawEntryBuilderMut<'a, K, V, S, A: Allocator + Clone = Global> {
16111611
/// [`Entry`]: enum.Entry.html
16121612
/// [`raw_entry_mut`]: struct.HashMap.html#method.raw_entry_mut
16131613
/// [`RawEntryBuilderMut`]: struct.RawEntryBuilderMut.html
1614-
pub enum RawEntryMut<'a, K, V, S, A: Allocator + Clone> {
1614+
pub enum RawEntryMut<'a, K, V, S, A: Allocator + Clone = Global> {
16151615
/// An occupied entry.
16161616
Occupied(RawOccupiedEntryMut<'a, K, V, S, A>),
16171617
/// A vacant entry.

src/raw/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ impl<T> Bucket<T> {
389389
}
390390

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

0 commit comments

Comments
 (0)