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

This commit is contained in:
Daniel García committed 2019-02-06 17:34:29 +01:00
1 parent 86ed75bf7c
commit 877408b808
6 files changed
+173 -90

No files matched your search

+1 -1
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 }