mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-03 09:23:00 +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,
|
Some("none") => OutputStyleOption::Disabled,
|
||||||
_ => {
|
_ => {
|
||||||
if options
|
if options
|
||||||
.command_output_policies
|
.command_output_policies.contains(&CommandOutputPolicy::Inherit)
|
||||||
.iter()
|
|
||||||
.any(|policy| *policy == CommandOutputPolicy::Inherit)
|
|
||||||
|| !io::stdout().is_terminal()
|
|| !io::stdout().is_terminal()
|
||||||
{
|
{
|
||||||
OutputStyleOption::Basic
|
OutputStyleOption::Basic
|
||||||
|
|||||||
Reference in new issue
Block a user