From c7ecf3019a75dc0ab1a0aefeb9b880899fc8a231 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Mon, 29 May 2023 18:01:12 +0200 Subject: cargo fmt and add fmt file --- src/error.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index f981f14..a2b37a8 100644 --- a/src/error.rs +++ b/src/error.rs @@ -34,8 +34,12 @@ impl std::error::Error for MLError { impl fmt::Display for MLError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self.etype { - ErrorType::ArgumentError => write!(f, "User input not accepted: {}", self.message), - ErrorType::ArgumentCountError => write!(f, "Too many/too few arguments"), + ErrorType::ArgumentError => { + write!(f, "User input not accepted: {}", self.message) + } + ErrorType::ArgumentCountError => { + write!(f, "Too many/too few arguments") + } ErrorType::ConfigError => write!(f, "CONFIG"), ErrorType::DBError => write!(f, "Database: {}", self.message), ErrorType::ModError => write!(f, "Mod: {}", self.message), -- cgit v1.2.3