mirror of https://github.com/zkat/miette.git
feat(graphical): compact even more
This commit is contained in:
parent
41cb710a7d
commit
72c0bb9e65
|
|
@ -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(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue