From 6bab9eee41113743849ab843aac9cd5ff7ccaffe Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 17 Dec 2024 13:40:35 +0100 Subject: [PATCH] Remove unnecessary type annotation --- src/unix_term.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix_term.rs b/src/unix_term.rs index be2873bd..0f7ac00d 100644 --- a/src/unix_term.rs +++ b/src/unix_term.rs @@ -345,7 +345,7 @@ pub(crate) fn read_single_key(ctrlc_key: bool) -> io::Result { unsafe { libc::cfmakeraw(&mut termios) }; termios.c_oflag = original.c_oflag; c_result(|| unsafe { libc::tcsetattr(input.as_raw_fd(), libc::TCSADRAIN, &termios) })?; - let rv: io::Result = read_single_key_impl(input.as_raw_fd()); + let rv = read_single_key_impl(input.as_raw_fd()); c_result(|| unsafe { libc::tcsetattr(input.as_raw_fd(), libc::TCSADRAIN, &original) })?; // if the user hit ^C we want to signal SIGINT to ourselves.