Use constant ANSI code to reset boldfaced colors in reporting for CHECK and TEST command. Remove unused color_reset constant.

This commit is contained in:
Norman Jäckel 2024-03-06 00:47:34 +01:00
parent d232a843e4
commit cfb068ec94
No known key found for this signature in database
GPG key ID: 85884FB77E7B6E5B
3 changed files with 7 additions and 6 deletions

View file

@ -575,8 +575,10 @@ pub fn test(matches: &ArgMatches, triple: Triple) -> io::Result<i32> {
let passed_color = ANSI_STYLE_CODES.green;
let reset = ANSI_STYLE_CODES.reset;
println!(
"\n{failed_color}{failed_count}\x1B[39m failed and {passed_color}{passed_count}\x1B[39m passed in {} ms.\n",
"\n{failed_color}{failed_count}{reset} failed and {passed_color}{passed_count}{reset} passed in {} ms.\n",
total_time.as_millis(),
);