Skip to content

Commit f7a392b

Browse files
committed
Replace RawTable inside HashMap with HashTable
1 parent c5c96af commit f7a392b

File tree

4 files changed

+73
-72
lines changed

4 files changed

+73
-72
lines changed

src/external_trait_impls/rayon/map.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ impl<K: Sync, V: Sync, S, A: Allocator> HashMap<K, V, S, A> {
296296
#[cfg_attr(feature = "inline-more", inline)]
297297
pub fn par_keys(&self) -> ParKeys<'_, K, V> {
298298
ParKeys {
299-
inner: unsafe { self.table.par_iter() },
299+
inner: unsafe { self.table.raw.par_iter() },
300300
marker: PhantomData,
301301
}
302302
}
@@ -305,7 +305,7 @@ impl<K: Sync, V: Sync, S, A: Allocator> HashMap<K, V, S, A> {
305305
#[cfg_attr(feature = "inline-more", inline)]
306306
pub fn par_values(&self) -> ParValues<'_, K, V> {
307307
ParValues {
308-
inner: unsafe { self.table.par_iter() },
308+
inner: unsafe { self.table.raw.par_iter() },
309309
marker: PhantomData,
310310
}
311311
}
@@ -316,7 +316,7 @@ impl<K: Send, V: Send, S, A: Allocator> HashMap<K, V, S, A> {
316316
#[cfg_attr(feature = "inline-more", inline)]
317317
pub fn par_values_mut(&mut self) -> ParValuesMut<'_, K, V> {
318318
ParValuesMut {
319-
inner: unsafe { self.table.par_iter() },
319+
inner: unsafe { self.table.raw.par_iter() },
320320
marker: PhantomData,
321321
}
322322
}
@@ -326,7 +326,7 @@ impl<K: Send, V: Send, S, A: Allocator> HashMap<K, V, S, A> {
326326
#[cfg_attr(feature = "inline-more", inline)]
327327
pub fn par_drain(&mut self) -> ParDrain<'_, K, V, A> {
328328
ParDrain {
329-
inner: self.table.par_drain(),
329+
inner: self.table.raw.par_drain(),
330330
}
331331
}
332332
}
@@ -357,7 +357,7 @@ impl<K: Send, V: Send, S, A: Allocator + Send> IntoParallelIterator for HashMap<
357357
#[cfg_attr(feature = "inline-more", inline)]
358358
fn into_par_iter(self) -> Self::Iter {
359359
IntoParIter {
360-
inner: self.table.into_par_iter(),
360+
inner: self.table.raw.into_par_iter(),
361361
}
362362
}
363363
}
@@ -369,7 +369,7 @@ impl<'a, K: Sync, V: Sync, S, A: Allocator> IntoParallelIterator for &'a HashMap
369369
#[cfg_attr(feature = "inline-more", inline)]
370370
fn into_par_iter(self) -> Self::Iter {
371371
ParIter {
372-
inner: unsafe { self.table.par_iter() },
372+
inner: unsafe { self.table.raw.par_iter() },
373373
marker: PhantomData,
374374
}
375375
}
@@ -382,7 +382,7 @@ impl<'a, K: Sync, V: Send, S, A: Allocator> IntoParallelIterator for &'a mut Has
382382
#[cfg_attr(feature = "inline-more", inline)]
383383
fn into_par_iter(self) -> Self::Iter {
384384
ParIterMut {
385-
inner: unsafe { self.table.par_iter() },
385+
inner: unsafe { self.table.raw.par_iter() },
386386
marker: PhantomData,
387387
}
388388
}

0 commit comments

Comments
 (0)