Implement basic config loading and updating. No save to file yet.

This commit is contained in:
Daniel García
2019-02-02 16:47:27 +01:00
parent 86ed75bf7c
commit 877408b808
6 changed files with 173 additions and 90 deletions

View File

@@ -331,7 +331,7 @@ fn _header_map() -> HeaderMap {
use reqwest::header::*;
macro_rules! headers {
($( $name:ident : $value:literal),+ $(,)* ) => {
($( $name:ident : $value:literal),+ $(,)? ) => {
let mut headers = HeaderMap::new();
$( headers.insert($name, HeaderValue::from_static($value)); )+
headers