We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b9bb4b commit 6bab9eeCopy full SHA for 6bab9ee
src/unix_term.rs
@@ -345,7 +345,7 @@ pub(crate) fn read_single_key(ctrlc_key: bool) -> io::Result<Key> {
345
unsafe { libc::cfmakeraw(&mut termios) };
346
termios.c_oflag = original.c_oflag;
347
c_result(|| unsafe { libc::tcsetattr(input.as_raw_fd(), libc::TCSADRAIN, &termios) })?;
348
- let rv: io::Result<Key> = read_single_key_impl(input.as_raw_fd());
+ let rv = read_single_key_impl(input.as_raw_fd());
349
c_result(|| unsafe { libc::tcsetattr(input.as_raw_fd(), libc::TCSADRAIN, &original) })?;
350
351
// if the user hit ^C we want to signal SIGINT to ourselves.
0 commit comments