From 788d4580e589c8f4a996b51a4ec08f31f1d8caab Mon Sep 17 00:00:00 2001 From: gwenn Date: Fri, 4 Aug 2023 20:03:33 +0200 Subject: [PATCH] Fix clippy warning --- src/tty/unix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(_) => {