Skip to content

Commit

Permalink
fix: regression introduced by #505
Browse files Browse the repository at this point in the history
Crash on startup if modules missing common options
  • Loading branch information
JakeStanger committed Apr 1, 2024
1 parent b9b29a4 commit e7895db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
};
}
Expand Down

0 comments on commit e7895db

Please sign in to comment.