From bade2a12842af141accb88e1531219a29f1812fe Mon Sep 17 00:00:00 2001 From: Andrew DeVries Date: Fri, 8 May 2026 16:35:42 -0500 Subject: [PATCH] change the status type to the enum --- magbot-rs/src/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/magbot-rs/src/config.rs b/magbot-rs/src/config.rs index a3f25ee..dcc6610 100644 --- a/magbot-rs/src/config.rs +++ b/magbot-rs/src/config.rs @@ -26,7 +26,7 @@ pub struct MagbotConfig { pub username: String, pub password: String, pub room_id: String, - pub status: Option, + pub status: MagbotStatus, } impl MagbotConfig { pub fn from_str(input: &str) -> anyhow::Result { @@ -41,6 +41,7 @@ impl Default for MagbotConfig { username: String::new(), password: String::new(), room_id: String::new(), + status: MagbotStatus::default(), } } }