From 09a55bee6821a9e5d08baa1df1767c84be153243 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 4 Aug 2022 20:48:03 +0200 Subject: [PATCH] Remove unnecessary rarity aliases --- src/schema/setbundle/rarity.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/schema/setbundle/rarity.rs b/src/schema/setbundle/rarity.rs index 8ff7239..3b32242 100644 --- a/src/schema/setbundle/rarity.rs +++ b/src/schema/setbundle/rarity.rs @@ -9,20 +9,18 @@ use crate::schema::corebundle::CoreRarity; #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, serde::Serialize, serde::Deserialize)] pub enum CardRarity { /// The card has no rarity, as it probably is not collectible. - #[serde(alias = "")] - #[serde(alias = "NONE")] None, + /// A common card. - #[serde(alias = "COMMON")] Common, + /// A rare card. - #[serde(alias = "RARE")] Rare, + /// An epic card. - #[serde(alias = "EPIC")] Epic, + /// A champion. - #[serde(alias = "CHAMPION")] Champion, }