From 6a5ec012eef50eb24c311c92c415866bf3026b88 Mon Sep 17 00:00:00 2001 From: Anna Clemens Date: Wed, 2 Nov 2022 16:37:44 -0400 Subject: [PATCH] feat: add function to convert --- src/model/manifest_kind.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/model/manifest_kind.rs b/src/model/manifest_kind.rs index a979fce..7640202 100644 --- a/src/model/manifest_kind.rs +++ b/src/model/manifest_kind.rs @@ -16,4 +16,11 @@ impl ManifestKind { }, } } + + pub fn into_mod_pack(self) -> ModPack { + match self { + Self::V1(mods) => mods.into(), + Self::V2(pack) => pack, + } + } }