mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:31 +00:00
Update src/bin/hexyl.rs
Co-authored-by: David Peter <sharkdp@users.noreply.github.com>
This commit is contained in:
1 parent
fd4aee2b85
commit
dfd7bdef49
1 file changed
+1
-1
+1
-1
@@ -295,7 +295,7 @@ fn run() -> Result<()> {
|
|||||||
let show_color = match matches.get_one::<String>("color").map(String::as_ref) {
|
let show_color = match matches.get_one::<String>("color").map(String::as_ref) {
|
||||||
Some("never") => false,
|
Some("never") => false,
|
||||||
Some("always") => true,
|
Some("always") => true,
|
||||||
_ => supports_color::on_cached(supports_color::Stream::Stdout)
|
_ => supports_color::on(supports_color::Stream::Stdout)
|
||||||
.map(|level| level.has_basic)
|
.map(|level| level.has_basic)
|
||||||
.unwrap_or(false),
|
.unwrap_or(false),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user