a type error

This commit is contained in:
Abraham Toriz 2021-08-25 16:51:04 -05:00
parent b9b970f2ae
commit ad60776949
1 changed files with 1 additions and 1 deletions

View File

@ -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;