Skip to content

Commit

Permalink
Fixed the redundant_pattern_matching clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ZapAnton committed Oct 31, 2019
1 parent b214dc2 commit 8e85b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image_backends/kitty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8e85b53

Please sign in to comment.