Begin cleanup

This commit is contained in:
Luke D. Jones
2021-08-25 11:42:32 +12:00
parent 6ceb5cf939
commit 60b7f3be69
8 changed files with 54 additions and 29 deletions

View File

@@ -60,8 +60,8 @@ impl Config {
if l == 0 {
warn!("File is empty {}", CONFIG_PATH);
} else {
serde_json::from_str(&buf)
.unwrap_or_else(|_| panic!("Could not deserialise {}", CONFIG_PATH))
*self = serde_json::from_str(&buf)
.unwrap_or_else(|_| panic!("Could not deserialise {}", CONFIG_PATH));
}
}
}