diff --git a/src/tty.rs b/src/tty.rs index 960f474..ea45135 100644 --- a/src/tty.rs +++ b/src/tty.rs @@ -20,7 +20,7 @@ pub fn is_tty(_stream: T) -> bool { /// This allows for getting stdio representing _only_ the TTY, and not other streams. #[cfg(target_os = "redox")] pub fn get_tty() -> io::Result { - fs::OpenOptions::new().read(true).write(true).open(env::var("TTY")?) + fs::OpenOptions::new().read(true).write(true).open(try!(env::var("TTY"))) } /// Get the TTY device.