diff --git a/rslib/src/decks.rs b/rslib/src/decks.rs index 227e6e6bd..b066f7ef6 100644 --- a/rslib/src/decks.rs +++ b/rslib/src/decks.rs @@ -76,7 +76,11 @@ mod dynfix { pub struct DeckCommon { #[serde(deserialize_with = "deserialize_number_from_string")] pub(crate) id: DeckID, - #[serde(rename = "mod", deserialize_with = "deserialize_number_from_string")] + #[serde( + rename = "mod", + deserialize_with = "deserialize_number_from_string", + default + )] pub(crate) mtime: TimestampSecs, pub(crate) name: String, pub(crate) usn: Usn, diff --git a/rslib/src/types.rs b/rslib/src/types.rs index 6d672d61e..b07ead78a 100644 --- a/rslib/src/types.rs +++ b/rslib/src/types.rs @@ -7,6 +7,7 @@ macro_rules! define_newtype { #[repr(transparent)] #[derive( Debug, + Default, Clone, Copy, PartialEq,