diff --git a/src/api/versions.rs b/src/api/versions.rs index 1cbac3e..58a510c 100644 --- a/src/api/versions.rs +++ b/src/api/versions.rs @@ -43,8 +43,7 @@ pub fn latest_stable() -> DataResult { }) .map(|(v, _, _, _)| v) .filter_map(|v| versions_by_minecraft_version().ok()?.remove(&v)) - .rev() - .next(); + .next_back(); latest.ok_or_else(|| DataError::NotFoundError(String::from("latest version"))) }