Skip to content

Commit a586f25

Browse files
committed
default A=Global for Entry and RawEntryMut
1 parent 507de8b commit a586f25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/map.rs

Lines changed: 2 additions & 2 deletions
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.
@@ -2186,7 +2186,7 @@ impl<K, V, S, A: Allocator + Clone> Debug for RawEntryBuilder<'_, K, V, S, A> {
21862186
///
21872187
/// [`HashMap`]: struct.HashMap.html
21882188
/// [`entry`]: struct.HashMap.html#method.entry
2189-
pub enum Entry<'a, K, V, S, A>
2189+
pub enum Entry<'a, K, V, S, A = Global>
21902190
where
21912191
A: Allocator + Clone,
21922192
{

0 commit comments

Comments
 (0)