inline loader enum metadata fields

This commit is contained in:
aecsocket
2026-08-04 17:20:20 +01:00
committed by Calum H.
parent 33c19df64b
commit 2308ac1a04
10 changed files with 117 additions and 133 deletions
+2 -2
View File
@@ -574,7 +574,7 @@ async fn minecraft_game_version_update() {
// A couple specific checks- in the dummy data, all game versions are marked as major=false except 1.20.5
let name_to_major = game_versions
.iter()
.map(|x| (x.value.clone(), x.metadata.as_ref().unwrap().major))
.map(|x| (x.value.clone(), x.major.unwrap()))
.collect::<std::collections::HashMap<_, _>>();
for (name, major) in name_to_major {
if name == "1.20.5" {
@@ -607,7 +607,7 @@ async fn minecraft_game_version_update() {
let name_to_major = game_versions
.iter()
.map(|x| (x.value.clone(), x.metadata.as_ref().unwrap().major))
.map(|x| (x.value.clone(), x.major.unwrap()))
.collect::<std::collections::HashMap<_, _>>();
// Confirm that the new version is there
assert!(name_to_major.contains_key("1.20.6"));