From bbd01ffdc22486482ec048c701478a716c2d934b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 2 Aug 2022 10:44:14 +0200 Subject: [PATCH] Wait no `non_exaustive` was correct there --- src/data/schema.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/data/schema.rs b/src/data/schema.rs index 1f6321d..2d8ca21 100644 --- a/src/data/schema.rs +++ b/src/data/schema.rs @@ -85,6 +85,7 @@ impl Card { /// A region to which cards can belong to. +#[non_exhaustive] #[derive(serde::Serialize, serde::Deserialize, Clone, Debug)] pub enum CardRegion { /// Noxus. @@ -134,6 +135,7 @@ pub struct Asset { /// A possible card type. +#[non_exhaustive] #[derive(serde::Serialize, serde::Deserialize, Clone, Debug)] pub enum CardType { /// A spell. @@ -155,6 +157,7 @@ pub enum CardType { /// A possible card rarity. +#[non_exhaustive] #[derive(serde::Serialize, serde::Deserialize, Clone, Debug)] pub enum CardRarity { /// The card has no rarity, as it probably is not collectible.