diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2023-04-03 18:08:32 +0200 |
---|---|---|
committer | Jeff Vander Stoep <jeffv@google.com> | 2023-04-03 18:08:32 +0200 |
commit | a452597528b57dedcae8a1df13ae9c53a56e5330 (patch) | |
tree | 1900296c4c4cc8dbc1dcc832ee0e0fcbdcceb88b /src/array.rs | |
parent | e8f5b0c9f5ad0f805638e7d2bf916f3f034abe04 (diff) | |
download | rayon-a452597528b57dedcae8a1df13ae9c53a56e5330.tar.gz |
Upgrade rayon to 1.7.0android-u-beta-1-gpl
This project was upgraded with external_updater.
Usage: tools/external_updater/updater.sh update rust/crates/rayon
For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md
Test: TreeHugger
Change-Id: Id3b0ce117290de8306402351d88eff7a9619d47f
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) } } } |