From f0a734839da390914775b17094a8ab324e0db7b8 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Tue, 27 Aug 2019 10:45:10 +0200 Subject: [PATCH] [Auto] lib/core/error: Fix Clippy warnings Signed-off-by: flip1995 Signed-off-by: Matthias Beyer --- lib/core/libimagerror/src/trace.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/libimagerror/src/trace.rs b/lib/core/libimagerror/src/trace.rs index 66676c1e..c3f61320 100644 --- a/lib/core/libimagerror/src/trace.rs +++ b/lib/core/libimagerror/src/trace.rs @@ -35,19 +35,19 @@ impl<'a, T: 'a + ?Sized> ImagTrace<'a, T> { impl<'a> Display for ImagTrace<'a, Error> { fn fmt(&self, fmt: &mut Formatter) -> FmtResult { - let _ = writeln!(fmt, "{}: {}", Red.blink().paint("ERROR[ 0]"), self.0)?; + writeln!(fmt, "{}: {}", Red.blink().paint("ERROR[ 0]"), self.0)?; { for (i, cause) in self.0.iter_causes().enumerate() { - let _ = writeln!(fmt, + writeln!(fmt, "{prefix}: {error}", prefix = Red.blink().paint(format!("ERROR[{:>4}]", i + 1)), error = cause)?; } } - let _ = writeln!(fmt, "{}", Red.paint("--- BACKTRACE ---"))?; - let _ = writeln!(fmt, "{:?}", self.0.backtrace())?; + writeln!(fmt, "{}", Red.paint("--- BACKTRACE ---"))?; + writeln!(fmt, "{:?}", self.0.backtrace())?; Ok(()) }