From c28d5a5c215e936502b08896935e5feac1a8441d Mon Sep 17 00:00:00 2001 From: projectmoon Date: Wed, 2 Jun 2021 15:14:43 +0000 Subject: [PATCH] Fix tests --- dicebot/src/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dicebot/src/config.rs b/dicebot/src/config.rs index 55abbce..fc842db 100644 --- a/dicebot/src/config.rs +++ b/dicebot/src/config.rs @@ -49,7 +49,7 @@ fn db_path_from_env() -> String { } /// The "bot" section of the config file, for bot settings. -#[derive(Serialize, Deserialize, Clone, Debug)] +#[derive(Serialize, Deserialize, Clone, Debug, Default)] struct BotConfig { /// How far back from current time should we process a message? oldest_message_age: Option, @@ -189,6 +189,7 @@ mod tests { }), bot: Some(BotConfig { oldest_message_age: None, + ..Default::default() }), };