diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-10-01 14:45:50 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-10-01 14:45:50 +0200 |
commit | 1eb140881b26328ed1b17615fee32427baafadf6 (patch) | |
tree | b1364beef0d67ba33718750c070d351b3a23c3b9 /src/error.rs | |
parent | 6c51d3b6b2dbe49d1b40fd0f0326b73f16357f72 (diff) |
Run cargo-fmt
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
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 { |