feat: add function to convert

This commit is contained in:
Anna 2022-11-02 16:37:44 -04:00
parent 5d03170539
commit 6a5ec012ee
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0
1 changed files with 7 additions and 0 deletions

View File

@ -16,4 +16,11 @@ impl ManifestKind {
},
}
}
pub fn into_mod_pack(self) -> ModPack {
match self {
Self::V1(mods) => mods.into(),
Self::V2(pack) => pack,
}
}
}