Fix wrong par_slice implementation
This commit is contained in:
parent
fef627b1eb
commit
33a8dc10cf
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ fn par_slice<I: DynSend>(
|
|||
rustc_thread_pool::scope(|s| {
|
||||
let proof = items.derive(());
|
||||
let group_size = std::cmp::max(items.len() / 128, 1);
|
||||
for group in items.chunks_exact_mut(group_size) {
|
||||
for group in items.chunks_mut(group_size) {
|
||||
let group = proof.derive(group);
|
||||
s.spawn(|_| {
|
||||
let mut group = group;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue