From 00b86709b6ced6177b02294b10a508d2a45289d5 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 20 Feb 2018 19:24:34 +0100 Subject: [PATCH] Use writeln!() instead of write!() --- lib/core/libimagerror/src/trace.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/libimagerror/src/trace.rs b/lib/core/libimagerror/src/trace.rs index 8807d28b..11e3ea22 100644 --- a/lib/core/libimagerror/src/trace.rs +++ b/lib/core/libimagerror/src/trace.rs @@ -36,10 +36,10 @@ impl<'a, T> Display for ImagTrace<'a, T> where T: ChainedError { fn fmt(&self, fmt: &mut Formatter) -> FmtResult { - try!(write!(fmt, "{}: {}", Red.blink().paint("ERROR[ 0]"), self.0)); + try!(writeln!(fmt, "{}: {}", Red.blink().paint("ERROR[ 0]"), self.0)); for (i, e) in self.0.iter().enumerate().skip(1) { - try!(write!(fmt, "{}: {}", Red.blink().paint(format!("ERROR[{:>4}]", i)), e)); + try!(writeln!(fmt, "{}: {}", Red.blink().paint(format!("ERROR[{:>4}]", i)), e)); } if let Some(backtrace) = self.0.backtrace() {