diff options
author | Hamir Mahal <hamirmahal@gmail.com> | 2024-03-11 00:40:08 -0700 |
---|---|---|
committer | Martin Nordholts <enselic@gmail.com> | 2024-03-11 18:57:51 +0100 |
commit | 07c26adc357f70a48f2b412008d5c37d43e084c5 (patch) | |
tree | 238dbb177a536e41f8cb8c0bde6e98dd398ae96a /src | |
parent | f29f9387b583f55d9bc99fa42e6c53be7b0813ce (diff) |
style: simplify equality check
Diffstat (limited to 'src')
-rw-r--r-- | src/printer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/printer.rs b/src/printer.rs index 959ca8f6..282f0fe1 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -265,7 +265,7 @@ impl<'a> InteractivePrinter<'a> { .content_type .map_or(false, |c| c.is_binary() && !config.show_nonprintable); - let highlighter_from_set = if is_printing_binary || config.colored_output == false { + let highlighter_from_set = if is_printing_binary || !config.colored_output { None } else { // Determine the type of syntax for highlighting |