diff --git a/src/tty/unix.rs b/src/tty/unix.rs index 161c54e3a..20faf0c41 100644 --- a/src/tty/unix.rs +++ b/src/tty/unix.rs @@ -778,7 +778,7 @@ impl RawReader for PosixRawReader { self.timeout_ms }; match self.poll(timeout_ms) { - Ok(n) if n == 0 => { + Ok(0) => { // single escape } Ok(_) => {