Skip to content

Commit b77d74c

Browse files
committed
Do not apply the report kind's colour to its colon
For consistency with other crates, and `Note` and `Help`.
1 parent 01baef4 commit b77d74c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/write.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ impl<S: Span> Report<'_, S> {
176176
let kind_color = self.kind.color(&self.config);
177177
writeln!(
178178
w,
179-
"{} {}",
180-
format_args!("{}{}:", Show(code), self.kind).fg(kind_color, s),
179+
"{}: {}",
180+
format_args!("{}{}", Show(code), self.kind).fg(kind_color, s),
181181
Show(self.msg.as_ref())
182182
)?;
183183

0 commit comments

Comments
 (0)