From 8aa0041b3dd33a55a2ecbd0a2ed0abb75736986b Mon Sep 17 00:00:00 2001 From: "Aode (lion)" Date: Wed, 24 Nov 2021 17:56:54 -0600 Subject: [PATCH] Add newline after error info in LemmyError Display impl --- crates/utils/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/utils/src/lib.rs b/crates/utils/src/lib.rs index e6188d2b8..6aef349d0 100644 --- a/crates/utils/src/lib.rs +++ b/crates/utils/src/lib.rs @@ -96,7 +96,7 @@ impl std::fmt::Debug for LemmyError { impl Display for LemmyError { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { - self.inner.fmt(f)?; + writeln!(f, "{}", self.inner)?; self.context.fmt(f) } }