diff --git a/src/lib.rs b/src/lib.rs index a94cd6f..54d9afe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,11 +37,7 @@ impl Rear { impl Display for Rear { fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult { - if !self.message.is_empty() { - write!(f, "{}", self.error) - } else { - write!(f, "{}\n{}", &self.message, &self.error) - } + write!(f, "{}", &self.message) } }