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

@@ -4,7 +4,7 @@
use std::error::Error as StdError;
macro_rules! make_error {
( $( $name:ident ( $ty:ty ): $src_fn:expr, $usr_msg_fun:expr ),+ $(,)* ) => {
( $( $name:ident ( $ty:ty ): $src_fn:expr, $usr_msg_fun:expr ),+ $(,)? ) => {
#[derive(Display)]
enum ErrorKind { $($name( $ty )),+ }
pub struct Error { message: String, error: ErrorKind }