From ad607769493ca28d1dd17af9d58125188993492a Mon Sep 17 00:00:00 2001 From: Abraham Toriz Date: Wed, 25 Aug 2021 16:51:04 -0500 Subject: [PATCH] a type error --- src/env.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env.rs b/src/env.rs index b788706..019969c 100644 --- a/src/env.rs +++ b/src/env.rs @@ -25,7 +25,7 @@ pub struct Env { impl Env { pub fn read() -> Env { #[cfg(windows)] - let tty = enable_ansi_support().is_some(); + let tty = enable_ansi_support().is_ok(); #[cfg(not(windows))] let tty = true;