mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +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
|
/// Prints the passed in [`Report`] to stderr
|
||||||
pub fn print_report(&mut self, report: Report<'_>) -> CargoResult<()> {
|
pub fn print_report(&mut self, report: Report<'_>) -> CargoResult<()> {
|
||||||
|
if self.needs_clear {
|
||||||
|
self.err_erase_line();
|
||||||
|
}
|
||||||
let term_width = self
|
let term_width = self
|
||||||
.err_width()
|
.err_width()
|
||||||
.diagnostic_terminal_width()
|
.diagnostic_terminal_width()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user