mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-31 08:40:18 +00:00
.contains(…)
This commit is contained in:
1 parent
98d262c497
commit
fae8b0ef64
1 file changed
+1
-3
+1
-3
@@ -360,9 +360,7 @@ impl Options {
|
||||
Some("none") => OutputStyleOption::Disabled,
|
||||
_ => {
|
||||
if options
|
||||
.command_output_policies
|
||||
.iter()
|
||||
.any(|policy| *policy == CommandOutputPolicy::Inherit)
|
||||
.command_output_policies.contains(&CommandOutputPolicy::Inherit)
|
||||
|| !io::stdout().is_terminal()
|
||||
{
|
||||
OutputStyleOption::Basic
|
||||
|
||||
Reference in new issue
Block a user