mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
fix(shell): Clear lines for Reports
This commit is contained in:
parent
30e00d90f5
commit
e3e2b07290
@ -405,6 +405,9 @@ impl Shell {
|
||||
|
||||
/// Prints the passed in [`Report`] to stderr
|
||||
pub fn print_report(&mut self, report: Report<'_>) -> CargoResult<()> {
|
||||
if self.needs_clear {
|
||||
self.err_erase_line();
|
||||
}
|
||||
let term_width = self
|
||||
.err_width()
|
||||
.diagnostic_terminal_width()
|
||||
|
Loading…
x
Reference in New Issue
Block a user