fix(shell): Clear lines for Reports

This commit is contained in:
Ed Page 2025-09-03 15:03:44 -05:00
parent 30e00d90f5
commit e3e2b07290

View File

@ -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()