aboutsummaryrefslogtreecommitdiff
path: root/src/array.rs
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-04-12 01:23:09 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-04-12 01:23:09 +0000
commitbd582ccf3ffb8113913cd2d77f2499a42ecb4074 (patch)
tree1900296c4c4cc8dbc1dcc832ee0e0fcbdcceb88b /src/array.rs
parent0ae555cb145ad18af680124b42cbef9717e952d0 (diff)
parent4b65af3a6cade5590e77fb4bf332037b13218119 (diff)
downloadrayon-android14-release.tar.gz
Change-Id: I501edf167da0861bc4b489a9dbc3bc4b983ce328
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)
}
}
}