From ddef9484cc1afe98003ce607e96152e67f60cb87 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Sun, 22 Nov 2020 22:41:11 -0500 Subject: [PATCH] added whitespace, added file to .gitignore --- .gitignore | 3 ++- src/config.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5c673b3..776d5b1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ **/*.rs.bk /.idea config.json -/.vscode/ \ No newline at end of file +/.vscode/ +Cargo.lock \ No newline at end of file diff --git a/src/config.rs b/src/config.rs index d1481ec..8d40f58 100644 --- a/src/config.rs +++ b/src/config.rs @@ -39,6 +39,7 @@ impl Configuration { ); let response = request::get_request(&request); + match response { Ok(res) => { let document = Document::from_read(res) @@ -85,4 +86,4 @@ pub fn init_config() -> Configuration { let config: Configuration = serde_json::from_str(&data).expect("Couldn't parse JSON!"); config -} \ No newline at end of file +}