diff --git a/src/cargo/core/compiler/future_incompat.rs b/src/cargo/core/compiler/future_incompat.rs index e94e42c390c4..5d43848af492 100644 --- a/src/cargo/core/compiler/future_incompat.rs +++ b/src/cargo/core/compiler/future_incompat.rs @@ -224,6 +224,7 @@ impl OnDiskReports { self.reports.last().map(|r| r.id).unwrap() } + /// Returns an ANSI-styled report pub fn get_report( &self, id: u32, @@ -269,11 +270,6 @@ impl OnDiskReports { let shell = config.shell(); - let to_display = if shell.err_supports_color() && shell.out_supports_color() { - to_display - } else { - anstream::adapter::strip_str(&to_display).to_string() - }; Ok(to_display) } }