diff options
Diffstat (limited to 'vendor/rayon/src/array.rs')
-rw-r--r-- | vendor/rayon/src/array.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/rayon/src/array.rs b/vendor/rayon/src/array.rs index 937bebf3b..32a5fdd2f 100644 --- a/vendor/rayon/src/array.rs +++ b/vendor/rayon/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) } } } |