Skip to content

Commit

Permalink
Fix crash when missing config section, instead go by defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
strawmelonjuice committed Mar 19, 2024
1 parent 0093d5e commit 5a9da5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@ pub struct CynthiaConf {
#[serde(default = "c_port")]
pub port: u16,
#[serde(alias = "Cache")]
#[serde(default)]
pub cache: Cache,
#[serde(alias = "Pages")]
#[serde(default)]
pub pages: Pages,
#[serde(alias = "Generator")]
#[serde(default)]
pub generator: Generator,
#[serde(alias = "Logging")]
#[serde(default)]
pub logging: Logging,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
Expand Down

0 comments on commit 5a9da5d

Please sign in to comment.