diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/error.rs b/src/error.rs index b6730e3..deb79ee 100644 --- a/src/error.rs +++ b/src/error.rs @@ -131,14 +131,12 @@ impl ConfigError { unexpected, expected, key, - } => { - ConfigError::Type { - origin, - unexpected, - expected, - key: Some(concat(key)), - } - } + } => ConfigError::Type { + origin, + unexpected, + expected, + key: Some(concat(key)), + }, ConfigError::NotFound(key) => ConfigError::NotFound(concat(Some(key))), _ => self, } @@ -210,7 +208,7 @@ impl fmt::Display for ConfigError { } } -impl Error for ConfigError { } +impl Error for ConfigError {} impl de::Error for ConfigError { fn custom<T: fmt::Display>(msg: T) -> Self { |