Skip to content

Commit e3e2b07

Browse files
committed
fix(shell): Clear lines for Reports
1 parent 30e00d9 commit e3e2b07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cargo/core/shell.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,9 @@ impl Shell {
405405

406406
/// Prints the passed in [`Report`] to stderr
407407
pub fn print_report(&mut self, report: Report<'_>) -> CargoResult<()> {
408+
if self.needs_clear {
409+
self.err_erase_line();
410+
}
408411
let term_width = self
409412
.err_width()
410413
.diagnostic_terminal_width()

0 commit comments

Comments
 (0)