diff options
author | Joel Gallant <joel@joelgallant.me> | 2020-10-11 09:44:24 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-11 09:44:24 -0600 |
commit | d9fc453c7b77bfbb7d0b0c8fb2be886b3c1508ff (patch) | |
tree | b1364beef0d67ba33718750c070d351b3a23c3b9 /src/error.rs | |
parent | 6c51d3b6b2dbe49d1b40fd0f0326b73f16357f72 (diff) | |
parent | 1eb140881b26328ed1b17615fee32427baafadf6 (diff) |
Merge pull request #155 from matthiasbeyer/format
Run cargo-fmt
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 { |