a type error
This commit is contained in:
parent
b9b970f2ae
commit
ad60776949
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue