Change color override part

This commit is contained in:
sharkdp authored and David Peter committed 2018-09-28 21:57:53 +02:00
1 parent 681e506a3f
commit df171392ec
1 file changed
+4 -2
+4 -2
View File
@@ -184,8 +184,10 @@ fn build_hyperfine_options(matches: &ArgMatches) -> Result<HyperfineOptions, Opt
} }
match options.output_style { match options.output_style {
OutputStyleOption::Full | OutputStyleOption::Color => colored::control::unset_override(), OutputStyleOption::Basic | OutputStyleOption::NoColor => {
_ => colored::control::set_override(false), colored::control::set_override(false)
}
_ => {}
} }
if matches.is_present("ignore-failure") { if matches.is_present("ignore-failure") {