Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/external_trait_impls/rayon/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ impl<K: Sync, V: Sync, S, A: Allocator> HashMap<K, V, S, A> {
#[cfg_attr(feature = "inline-more", inline)]
pub fn par_keys(&self) -> ParKeys<'_, K, V> {
ParKeys {
inner: unsafe { self.table.par_iter() },
inner: unsafe { self.table.raw.par_iter() },
marker: PhantomData,
}
}
Expand All @@ -305,7 +305,7 @@ impl<K: Sync, V: Sync, S, A: Allocator> HashMap<K, V, S, A> {
#[cfg_attr(feature = "inline-more", inline)]
pub fn par_values(&self) -> ParValues<'_, K, V> {
ParValues {
inner: unsafe { self.table.par_iter() },
inner: unsafe { self.table.raw.par_iter() },
marker: PhantomData,
}
}
Expand All @@ -316,7 +316,7 @@ impl<K: Send, V: Send, S, A: Allocator> HashMap<K, V, S, A> {
#[cfg_attr(feature = "inline-more", inline)]
pub fn par_values_mut(&mut self) -> ParValuesMut<'_, K, V> {
ParValuesMut {
inner: unsafe { self.table.par_iter() },
inner: unsafe { self.table.raw.par_iter() },
marker: PhantomData,
}
}
Expand All @@ -326,7 +326,7 @@ impl<K: Send, V: Send, S, A: Allocator> HashMap<K, V, S, A> {
#[cfg_attr(feature = "inline-more", inline)]
pub fn par_drain(&mut self) -> ParDrain<'_, K, V, A> {
ParDrain {
inner: self.table.par_drain(),
inner: self.table.raw.par_drain(),
}
}
}
Expand Down Expand Up @@ -357,7 +357,7 @@ impl<K: Send, V: Send, S, A: Allocator + Send> IntoParallelIterator for HashMap<
#[cfg_attr(feature = "inline-more", inline)]
fn into_par_iter(self) -> Self::Iter {
IntoParIter {
inner: self.table.into_par_iter(),
inner: self.table.raw.into_par_iter(),
}
}
}
Expand All @@ -369,7 +369,7 @@ impl<'a, K: Sync, V: Sync, S, A: Allocator> IntoParallelIterator for &'a HashMap
#[cfg_attr(feature = "inline-more", inline)]
fn into_par_iter(self) -> Self::Iter {
ParIter {
inner: unsafe { self.table.par_iter() },
inner: unsafe { self.table.raw.par_iter() },
marker: PhantomData,
}
}
Expand All @@ -382,7 +382,7 @@ impl<'a, K: Sync, V: Send, S, A: Allocator> IntoParallelIterator for &'a mut Has
#[cfg_attr(feature = "inline-more", inline)]
fn into_par_iter(self) -> Self::Iter {
ParIterMut {
inner: unsafe { self.table.par_iter() },
inner: unsafe { self.table.raw.par_iter() },
marker: PhantomData,
}
}
Expand Down
Loading