add default value for storage config

This commit is contained in:
Sebastian Hugentobler 2017-03-22 09:41:53 +01:00
parent e385a07aac
commit 21f0ce8608

View File

@ -32,6 +32,7 @@ fn timestamp() -> i64 {
#[derive(Serialize, Deserialize)] #[derive(Serialize, Deserialize)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub struct Config { pub struct Config {
#[serde(default)]
pub storage: String, pub storage: String,
#[serde(default = "default_map")] #[serde(default = "default_map")]
pub games: HashMap<String, u64>, pub games: HashMap<String, u64>,