Merge branch '6-no-default-for-storage-config' into 'master'

add default value for storage config

Closes #6

See merge request !2
This commit is contained in:
Sebastian Hugentobler 2017-03-22 08:53:38 +00:00
commit 0f1ce507f9

View File

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