From e57106fd4dc84dc383156b61b964cf454886ee3c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 24 Apr 2022 21:02:23 +0100 Subject: [PATCH] dice: Allow loading old savefiles with no desc field Signed-off-by: Ian Jackson --- src/dice.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dice.rs b/src/dice.rs index 749c5331..687283e0 100644 --- a/src/dice.rs +++ b/src/dice.rs @@ -38,7 +38,7 @@ pub struct Spec { #[serde(default="default_cooldown")] #[serde(with="humantime_serde")] cooldown: Duration, itemname: Option, - desc: Option, + #[serde(default)] desc: Option, } #[derive(Debug,Default,Clone,Serialize,Deserialize)] -- 2.30.2