builder: cleanup .timing_message/2

pull/6540/head
Delyan Angelov 2020-10-01 18:21:20 +03:00
parent a0e4be04be
commit ac384db71f
2 changed files with 3 additions and 2 deletions

View File

@ -334,7 +334,8 @@ fn verror(s string) {
} }
pub fn (mut b Builder) timing_message(msg string, ms i64) { pub fn (mut b Builder) timing_message(msg string, ms i64) {
formatted_message := '$msg: ${util.bold(ms.str())} ms' value := util.bold('$ms')
formatted_message := '$msg: $value ms'
if b.pref.show_timings { if b.pref.show_timings {
println(formatted_message) println(formatted_message)
} else { } else {

View File

@ -35,7 +35,7 @@ mut:
pub fn new_error_manager() &EManager { pub fn new_error_manager() &EManager {
return &EManager{ return &EManager{
support_color: term.can_show_color_on_stderr() support_color: term.can_show_color_on_stderr() && term.can_show_color_on_stdout()
} }
} }