Skip to content

Commit 502f9fe

Browse files
committed
Add default allocator parameters for compatibility
1 parent d033e84 commit 502f9fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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: 1 addition & 1 deletion
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>,

0 commit comments

Comments
 (0)