From 3cadb5e99acae0b9af8fe13ff0ef8acfe68b8d6e Mon Sep 17 00:00:00 2001 From: yuyi Date: Thu, 10 Aug 2023 16:52:42 +0800 Subject: [PATCH] benchmark: minor cleanup in total_message() --- vlib/benchmark/benchmark.v | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vlib/benchmark/benchmark.v b/vlib/benchmark/benchmark.v index 66a2973f3e..cc5749afb2 100644 --- a/vlib/benchmark/benchmark.v +++ b/vlib/benchmark/benchmark.v @@ -191,9 +191,7 @@ pub fn (b &Benchmark) step_message_skip(msg string) string { // total_message returns a string with total summary of the benchmark run. pub fn (b &Benchmark) total_message(msg string) string { the_label := term.colorize(term.gray, msg) - // vfmt off - mut tmsg := '${term.colorize(term.bold, 'Summary for $the_label:')} ' - // vfmt on + mut tmsg := term.colorize(term.bold, 'Summary for ${the_label}:') + ' ' if b.nfail > 0 { tmsg += term.colorize(term.bold, term.colorize(term.red, '${b.nfail} failed')) + ', ' }