Skip to content

Commit

Permalink
feat(graphical): compact even more
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Sep 22, 2021
1 parent 41cb710 commit 72c0bb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/handlers/graphical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,14 @@ impl GraphicalReportHandler {
)
);
write!(header, "{}", link)?;
writeln!(f, "{}", header)?;
} else if let Some(code) = diagnostic.code() {
write!(header, "{}", code.style(severity_style),)?;
if let Some(link) = diagnostic.url() {
write!(header, " ({})", link.style(self.theme.styles.link))?;
}
writeln!(f, "{}", header)?;
}
writeln!(f, "{}", header)?;
Ok(())
}

Expand Down

0 comments on commit 72c0bb9

Please sign in to comment.