summaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-10-01 14:45:50 +0200
committerMatthias Beyer <mail@beyermatthias.de>2020-10-01 14:45:50 +0200
commit1eb140881b26328ed1b17615fee32427baafadf6 (patch)
treeb1364beef0d67ba33718750c070d351b3a23c3b9 /src/error.rs
parent6c51d3b6b2dbe49d1b40fd0f0326b73f16357f72 (diff)
Run cargo-fmt
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs16
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 {