From dfd7bdef494a717e8f344267b5283a101437b6c3 Mon Sep 17 00:00:00 2001 From: sharif <61516383+sharifhsn@users.noreply.github.com> Date: Wed, 7 Dec 2022 17:33:35 -0500 Subject: [PATCH] Update src/bin/hexyl.rs Co-authored-by: David Peter --- src/bin/hexyl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::("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), };