We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9659f32 commit 974561dCopy full SHA for 974561d
crates/compilers/src/compile/output/mod.rs
@@ -911,13 +911,12 @@ impl<C: Compiler> fmt::Display for OutputDiagnostics<'_, C> {
911
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
912
f.write_str("Compiler run ")?;
913
if self.has_error() {
914
- Paint::red("failed:")
+ write!(f, "{}:", "failed".red())
915
} else if self.has_warning() {
916
- Paint::yellow("successful with warnings:")
+ write!(f, "{}:", "successful with warnings".yellow())
917
} else {
918
- Paint::green("successful!")
919
- }
920
- .fmt(f)?;
+ write!(f, "{}!", "successful".green())
+ }?;
921
922
for err in &self.compiler_output.errors {
923
if !self.compiler_output.should_ignore(
0 commit comments