mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Make checks more concise
This commit is contained in:
1 parent
faf00b6985
commit
4829dfbc85
2 files changed
+4
-6
No files matched your search
+2
-4
@@ -158,14 +158,12 @@ fn main() {
|
||||
},
|
||||
};
|
||||
|
||||
// We default Windows to NoColor if full or auto had been specified.
|
||||
// We default Windows to NoColor if full had been specified.
|
||||
if cfg!(windows) && options.output_style == OutputStyleOption::Full {
|
||||
options.output_style = OutputStyleOption::NoColor;
|
||||
}
|
||||
|
||||
if options.output_style == OutputStyleOption::Basic
|
||||
|| options.output_style == OutputStyleOption::NoColor
|
||||
{
|
||||
if options.output_style != OutputStyleOption::Full {
|
||||
colored::control::set_override(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user