From 8125876634dc4c11f719fae115fd68e7e03a037f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=CC=81scar=20M=2E=20Lage?= Date: Sun, 14 Nov 2021 14:55:30 +0100 Subject: [PATCH] Fix: Change a bit the config Struct --- src/config.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/config.rs b/src/config.rs index c569431..5de0c18 100644 --- a/src/config.rs +++ b/src/config.rs @@ -7,16 +7,14 @@ use toml; #[derive(Debug, Serialize, Deserialize)] pub struct Config { - url: String, - api: String, - key: String, + pub url: String, + pub key: String, } impl Config { pub fn default() -> Config { Config { url: "https://uri".to_string(), - api: "/v1/api".to_string(), key: "s3cr3tk3y".to_string(), } }