From e7895db55d5684be5fba74226e56f1c0f351b84d Mon Sep 17 00:00:00 2001 From: Jake Stanger Date: Mon, 1 Apr 2024 15:37:11 +0100 Subject: [PATCH] fix: regression introduced by #505 Crash on startup if modules missing common options --- src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macros.rs b/src/macros.rs index cabc8a02..2e92619a 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -21,7 +21,7 @@ macro_rules! module_impl { } fn take_common(&mut self) -> $crate::config::CommonConfig { - self.common.take().expect("common config to exist") + self.common.take().unwrap_or_default() } }; }