From df171392ec18e7af3cbca97cd7fb64afd98c5134 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Fri, 28 Sep 2018 21:25:18 +0200 Subject: [PATCH] Change color override part --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 67ff051..72cf6dc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -184,8 +184,10 @@ fn build_hyperfine_options(matches: &ArgMatches) -> Result colored::control::unset_override(), - _ => colored::control::set_override(false), + OutputStyleOption::Basic | OutputStyleOption::NoColor => { + colored::control::set_override(false) + } + _ => {} } if matches.is_present("ignore-failure") {