From 1eb140881b26328ed1b17615fee32427baafadf6 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 1 Oct 2020 14:45:50 +0200 Subject: Run cargo-fmt Signed-off-by: Matthias Beyer --- src/error.rs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/error.rs') 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(msg: T) -> Self { -- cgit v1.2.3