Ensure that all config keys are optional

Without this change, a config without a [display] section
would fail to parse.
This commit is contained in:
Danilo Bargen 2019-03-11 10:53:12 +01:00
commit 410e96ef7f

View file

@ -116,7 +116,9 @@ struct RawDisplayConfig {
#[derive(Debug, Default, Serialize, Deserialize, PartialEq, Eq)]
struct RawConfig {
#[serde(default)]
style: RawStyleConfig,
#[serde(default)]
display: RawDisplayConfig,
}
@ -134,7 +136,7 @@ impl RawConfig {
raw_config
}
} // impl RawConfig
}
#[derive(Copy, Clone, Debug, PartialEq)]
pub struct StyleConfig {