mirror of
https://github.com/vhaudiquet/ecrou.git
synced 2026-11-12 22:22:44 +00:00
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.
This commit is contained in:
1 parent
4affe9230c
commit
5df06ffcc2
1 file changed
+1
-2
@@ -359,8 +359,7 @@ fn fetch_ubuntu_meta_releases(url: &str) -> anyhow::Result<Vec<UbuntuRelease>> {
|
||||
fn fetch_ubuntu_latest_number(url: &str) -> anyhow::Result<String> {
|
||||
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))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user