From 5df06ffcc23103b5e142dfa3ed1ec54625efae1b Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Fri, 30 Oct 2026 23:12:25 +0100 Subject: [PATCH] fix(distro): take the last supported release with rfind filter(..).next_back() on a double-ended iterator is denied by newer clippy, and CI floats on stable, so it went red there while passing locally. --- crates/ecrou/src/distro.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/ecrou/src/distro.rs b/crates/ecrou/src/distro.rs index 3212c94..d8a3249 100644 --- a/crates/ecrou/src/distro.rs +++ b/crates/ecrou/src/distro.rs @@ -359,8 +359,7 @@ fn fetch_ubuntu_meta_releases(url: &str) -> anyhow::Result> { fn fetch_ubuntu_latest_number(url: &str) -> anyhow::Result { fetch_ubuntu_meta_releases(url)? .into_iter() - .filter(|r| r.supported) - .next_back() + .rfind(|r| r.supported) .map(|r| r.number) .ok_or_else(|| anyhow!("no supported Ubuntu release listed in {}", url)) }