diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-04-12 01:23:09 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-04-12 01:23:09 +0000 |
commit | bd582ccf3ffb8113913cd2d77f2499a42ecb4074 (patch) | |
tree | 1900296c4c4cc8dbc1dcc832ee0e0fcbdcceb88b /src/array.rs | |
parent | 0ae555cb145ad18af680124b42cbef9717e952d0 (diff) | |
parent | 4b65af3a6cade5590e77fb4bf332037b13218119 (diff) | |
download | rayon-android14-release.tar.gz |
Snap for 9921839 from 4b65af3a6cade5590e77fb4bf332037b13218119 to udc-releaseandroid-vts-14.0_r4android-vts-14.0_r3android-vts-14.0_r2android-vts-14.0_r1android-security-14.0.0_r9android-security-14.0.0_r8android-security-14.0.0_r7android-security-14.0.0_r6android-security-14.0.0_r5android-security-14.0.0_r4android-security-14.0.0_r3android-security-14.0.0_r2android-security-14.0.0_r10android-security-14.0.0_r1android-platform-14.0.0_r9android-platform-14.0.0_r8android-platform-14.0.0_r7android-platform-14.0.0_r6android-platform-14.0.0_r5android-platform-14.0.0_r4android-platform-14.0.0_r3android-platform-14.0.0_r2android-platform-14.0.0_r1android-cts-14.0_r4android-cts-14.0_r3android-cts-14.0_r2android-cts-14.0_r1android-14.0.0_r28android-14.0.0_r2android-14.0.0_r15android-14.0.0_r14android-14.0.0_r13android-14.0.0_r1android14-tests-releaseandroid14-security-releaseandroid14-s2-releaseandroid14-s1-releaseandroid14-releaseandroid14-platform-release
Change-Id: I501edf167da0861bc4b489a9dbc3bc4b983ce328
Diffstat (limited to 'src/array.rs')
-rw-r--r-- | src/array.rs | 3 |
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) } } } |