From a9406d99ffc65737621b98127149cfec199c7abb Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Thu, 30 May 2024 18:01:58 +0200 Subject: [PATCH] Do not apply the report kind's colour to its colon For consistency with other crates, and `Note` and `Help`. --- src/write.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/write.rs b/src/write.rs index 9a56564..b963202 100644 --- a/src/write.rs +++ b/src/write.rs @@ -175,8 +175,8 @@ impl Report<'_, S> { let kind_color = self.kind.color(&self.config); writeln!( w, - "{} {}", - format_args!("{}{}:", Show(code), self.kind).fg(kind_color, s), + "{}: {}", + format_args!("{}{}", Show(code), self.kind).fg(kind_color, s), Show(self.msg.as_ref()) )?;