Skip to content

Commit

Permalink
Do not apply the report kind's colour to its colon
Browse files Browse the repository at this point in the history
For consistency with other crates, and `Note` and `Help`.
  • Loading branch information
ISSOtm committed Dec 10, 2024
1 parent e5648d9 commit dab841a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ impl<S: Span> 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())
)?;

Expand Down

0 comments on commit dab841a

Please sign in to comment.