summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bin/hexyl.rs2
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),
};