From 7a151d3c34d9676535661a472a35f88893240170 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:04:45 +0100 Subject: [PATCH] chore: don't color punctuation in output diagnostics (#222) --- crates/compilers/src/compile/output/mod.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/crates/compilers/src/compile/output/mod.rs b/crates/compilers/src/compile/output/mod.rs index abbf31b9..4c2eb9c4 100644 --- a/crates/compilers/src/compile/output/mod.rs +++ b/crates/compilers/src/compile/output/mod.rs @@ -911,13 +911,12 @@ impl fmt::Display for OutputDiagnostics<'_, C> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.write_str("Compiler run ")?; if self.has_error() { - Paint::red("failed:") + write!(f, "{}:", "failed".red()) } else if self.has_warning() { - Paint::yellow("successful with warnings:") + write!(f, "{}:", "successful with warnings".yellow()) } else { - Paint::green("successful!") - } - .fmt(f)?; + write!(f, "{}!", "successful".green()) + }?; for err in &self.compiler_output.errors { if !self.compiler_output.should_ignore(