From 6422f8217495aeef38af4eb00feeb73ced36f7bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Wed, 8 Sep 2021 18:29:41 -0700 Subject: [PATCH] fix(report): don't color error message text to draw eyes back to it --- src/handlers/graphical.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/handlers/graphical.rs b/src/handlers/graphical.rs index 4ebe392..4c8724c 100644 --- a/src/handlers/graphical.rs +++ b/src/handlers/graphical.rs @@ -105,7 +105,7 @@ impl GraphicalReportHandler { f, " {} {}", severity_icon.style(severity_style), - diagnostic.style(severity_style) + diagnostic, )?; Ok(()) } @@ -125,13 +125,13 @@ impl GraphicalReportHandler { } else { self.theme.characters.lbot }; - let msg = format!( - " {}{}{} {}", - char, self.theme.characters.hbar, self.theme.characters.rarrow, error + let prefix = format!( + " {}{}{}", + char, self.theme.characters.hbar, self.theme.characters.rarrow ) .style(severity_style) .to_string(); - writeln!(f, "{}", msg)?; + writeln!(f, "{} {}", prefix, error)?; } }