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 Jul 5, 2024
1 parent 01baef4 commit b77d74c
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 @@ -176,8 +176,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 b77d74c

Please sign in to comment.