Skip to content

Commit f37cb6e

Browse files
committed
Remove unnecessary type annotation
1 parent d4089db commit f37cb6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix_term.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ pub(crate) fn read_single_key(ctrlc_key: bool) -> io::Result<Key> {
345345
unsafe { libc::cfmakeraw(&mut termios) };
346346
termios.c_oflag = original.c_oflag;
347347
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());
348+
let rv = read_single_key_impl(input.as_raw_fd());
349349
c_result(|| unsafe { libc::tcsetattr(input.as_raw_fd(), libc::TCSADRAIN, &original) })?;
350350

351351
// if the user hit ^C we want to signal SIGINT to ourselves.

0 commit comments

Comments
 (0)