Skip to content

Commit

Permalink
fix rayon
Browse files Browse the repository at this point in the history
  • Loading branch information
xacrimon committed Feb 6, 2022
1 parent 2f488a0 commit 1f37096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rayon/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ where
let guard = Arc::new(guard);
sref.iter().map(move |(k, v)| {
let guard = Arc::clone(&guard);
RefMulti::new(guard, k, v.get())
unsafe { RefMulti::new(guard, k, v.get()) }
})
})
.drive_unindexed(consumer)
Expand Down Expand Up @@ -213,7 +213,7 @@ where
let guard = Arc::new(guard);
sref.iter_mut().map(move |(k, v)| {
let guard = Arc::clone(&guard);
RefMutMulti::new(guard, k, v.get_mut())
unsafe { RefMutMulti::new(guard, k, v.get_mut()) }
})
})
.drive_unindexed(consumer)
Expand Down

0 comments on commit 1f37096

Please sign in to comment.