diff options
author | sharif <61516383+sharifhsn@users.noreply.github.com> | 2022-12-07 17:33:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-07 17:33:35 -0500 |
commit | dfd7bdef494a717e8f344267b5283a101437b6c3 (patch) | |
tree | 49035e49d3440c1124bfc82dd24e0c428d8437b5 | |
parent | fd4aee2b85be565e131f3d5404a83675f9a6e742 (diff) |
Update src/bin/hexyl.rs
Co-authored-by: David Peter <sharkdp@users.noreply.github.com>
-rw-r--r-- | src/bin/hexyl.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/hexyl.rs b/src/bin/hexyl.rs index 50cea1b..872df04 100644 --- a/src/bin/hexyl.rs +++ b/src/bin/hexyl.rs @@ -295,7 +295,7 @@ fn run() -> Result<()> { let show_color = match matches.get_one::<String>("color").map(String::as_ref) { Some("never") => false, Some("always") => true, - _ => supports_color::on_cached(supports_color::Stream::Stdout) + _ => supports_color::on(supports_color::Stream::Stdout) .map(|level| level.has_basic) .unwrap_or(false), }; |