diff --git a/src/releases.rs b/src/releases.rs index bab84cb..940e107 100644 --- a/src/releases.rs +++ b/src/releases.rs @@ -182,12 +182,11 @@ pub async fn all_releases(platform: Platform) -> Result { .await? .json::() .await?; - releases.builds = releases + releases .builds - .iter() - .filter(|b| b.version.lt(&MACOS_AARCH64_NATIVE)) - .cloned() - .collect(); + .retain(|b| b.version.lt(&MACOS_AARCH64_NATIVE)); + releases.releases.retain(|v, _| v.lt(&MACOS_AARCH64_NATIVE)); + releases.builds.extend_from_slice(&native.builds); releases.releases.append(&mut native.releases); return Ok(releases);