From 8e85b53503507c9e0ca8c3cba89d42875cff1805 Mon Sep 17 00:00:00 2001 From: ZapAnton Date: Thu, 31 Oct 2019 17:21:45 +0300 Subject: [PATCH] Fixed the redundant_pattern_matching clippy warning Relevant lint: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching --- src/image_backends/kitty.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image_backends/kitty.rs b/src/image_backends/kitty.rs index 32470a957..d2239a8b0 100644 --- a/src/image_backends/kitty.rs +++ b/src/image_backends/kitty.rs @@ -64,7 +64,7 @@ impl KittyBackend { } } }); - if let Ok(_) = receiver.recv_timeout(Duration::from_millis(50)) { + if receiver.recv_timeout(Duration::from_millis(50)).is_ok() { unsafe { tcsetattr(STDIN_FILENO, TCSANOW, &old_attributes); }