commit | 03d39dbe9bd945d231bd268e3d7bee791a5894c5 | [log] [tgz] |
---|---|---|
author | Aaron Drew <ripper@google.com> | Mon Dec 05 15:32:12 2022 +1100 |
committer | Aaron Drew <ripper@google.com> | Mon Dec 12 00:57:30 2022 +0000 |
tree | 4496fa55ac9a926bf2e9270c64ee874a336ae5f8 | |
parent | 3965fc715e419600a1cef2e87511def17b8e2c06 [diff] |
[rustyline] Update to work with the latest nix. Change-Id: I4eb5d77f6ef86a50bbd80c01160685422d68dcbf Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/rust-mirrors/rustyline/+/770742 Reviewed-by: Tyler Mandry <tmandry@google.com>
diff --git a/src/tty/unix.rs b/src/tty/unix.rs index 4255555..00cd8c2 100644 --- a/src/tty/unix.rs +++ b/src/tty/unix.rs
@@ -655,10 +655,9 @@ // Interactive loop: fn enable_raw_mode(&mut self) -> Result<Mode> { - use nix::errno::Errno::ENOTTY; use nix::sys::termios::{ControlFlags, InputFlags, LocalFlags, SpecialCharacterIndices}; if !self.stdin_isatty { - try!(Err(nix::Error::from_errno(ENOTTY))); + try!(Err(nix::Error::ENOTTY)); } let original_mode = try!(termios::tcgetattr(STDIN_FILENO)); let mut raw = original_mode.clone();