mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
janitor: Do not spam the build output with empty lines
This commit is contained in:
parent
2adc3713fa
commit
d62c98d574
1 changed files with 4 additions and 2 deletions
|
@ -409,8 +409,10 @@ impl BuildDiagnostics {
|
|||
})
|
||||
.collect();
|
||||
|
||||
let mut emitter = emitter_factory(output, Some(&codemap));
|
||||
emitter.emit(&diags);
|
||||
if !diags.is_empty() {
|
||||
let mut emitter = emitter_factory(output, Some(&codemap));
|
||||
emitter.emit(&diags);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "display-diagnostics")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue