From 21f0ce860858e0bcf43e507cd431667f8e954604 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Wed, 22 Mar 2017 09:41:53 +0100 Subject: [PATCH 1/2] add default value for storage config --- src/models.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models.rs b/src/models.rs index 9b2ab09..fd29581 100644 --- a/src/models.rs +++ b/src/models.rs @@ -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, From 569491a9ab9ce2cfb6a8d6f490b71f854ff15e00 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Wed, 22 Mar 2017 09:56:25 +0100 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 3 +++ Cargo.toml | 2 +- src/main.rs | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5850b32..5dbcf33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.2.2 (2017-03-22) +- default value for storage config (fixes #6) + ## 0.2.1 (2017-03-21) - add instructions for getting the code if there is no token diff --git a/Cargo.toml b/Cargo.toml index c3c9ae2..5d33ed1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gog-sync" -version = "0.2.1" +version = "0.2.2" authors = ["Sebastian Hugentobler "] description = "Synchronizes a GOG library with a local folder." documentation = "https://docs.rs/crate/gog-sync" diff --git a/src/main.rs b/src/main.rs index 442079a..1f6606f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,7 +43,7 @@ fn main() { env_logger::init().unwrap(); let matches = App::new("Gog Synchronizer") - .version("0.2.1") + .version("0.2.2") .author("Sebastian Hugentobler ") .about("Synchronizes your gog library to a local folder.") .arg(Arg::with_name("storage")