From fec6f941c5e414a3d44e678d5c386b1495fc4bf6 Mon Sep 17 00:00:00 2001 From: Dar Dahlen Date: Mon, 19 Aug 2024 16:07:18 -0700 Subject: [PATCH] Backwards compatibility with rust v1.75 (#98) * Backwards compatibility with rust v1.75 * changelog * typo --- CHANGELOG.md | 3 +++ src/neospy/rust/propagation.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbc841a..094bcc0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 of objects, leading to huge speed gains for large queries. - Fixed a bug where saving lists of SimultaneousStates had a bug where field of view information was not being saved correctly. +- Fixed incompatibility with older versions of the rust compiler, working back to + at least v1.75.0 + ## [0.2.5] - 2024 - 8 - 12 diff --git a/src/neospy/rust/propagation.rs b/src/neospy/rust/propagation.rs index da7a6c1..b85dce0 100644 --- a/src/neospy/rust/propagation.rs +++ b/src/neospy/rust/propagation.rs @@ -191,7 +191,7 @@ pub fn propagation_n_body_py( .par_chunks(batch_size) .map(|chunk| { let (chunk_state, chunk_nongrav): (Vec, Vec>) = - chunk.iter().cloned().collect(); + chunk.iter().cloned().unzip(); propagation::propagate_n_body_vec(chunk_state, jd, planet_states.clone(), chunk_nongrav) .map(|(states, planets)| {