Skip to content

Commit 48fab66

Browse files
Minor mistake..
...that might cause Cynthia to crash over unimplemented settings lol
1 parent b952f1d commit 48fab66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/config.rs

+4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ pub struct Lifetimes {
5959
#[serde(rename_all = "camelCase")]
6060
pub struct Generator {
6161
#[serde(alias = "site-baseurl")]
62+
#[serde(default = "c_emptystring")]
6263
pub site_baseurl: String,
6364
pub meta: Meta,
6465
}
@@ -106,6 +107,9 @@ fn c_bool_false() -> bool {
106107
fn c_bool_true() -> bool {
107108
true
108109
}
110+
fn c_emptystring() -> String {
111+
String::from("")
112+
}
109113
fn c_cache_lifetime_stylesheets() -> u64 {
110114
72000
111115
}

0 commit comments

Comments
 (0)