aboutsummaryrefslogtreecommitdiff
path: root/src/array.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/array.rs')
-rw-r--r--src/array.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/array.rs b/src/array.rs
index 937bebf..32a5fdd 100644
--- a/src/array.rs
+++ b/src/array.rs
@@ -78,7 +78,8 @@ impl<T: Send, const N: usize> IndexedParallelIterator for IntoIter<T, N> {
unsafe {
// Drain every item, and then the local array can just fall out of scope.
let mut array = ManuallyDrop::new(self.array);
- callback.callback(DrainProducer::new(&mut *array))
+ let producer = DrainProducer::new(array.as_mut_slice());
+ callback.callback(producer)
}
}
}