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 e029657 commit 712e75f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/handlers/graphical.rs
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 712e75f

Please sign in to comment.