From 4d49b4c1d1f5a6c36aea45032dd2138047b61394 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Thu, 6 May 2021 15:31:53 -0700 Subject: [PATCH] Fix clippy lint --- cursive/src/backends/resize.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cursive/src/backends/resize.rs b/cursive/src/backends/resize.rs index 016c49c..5f204e4 100644 --- a/cursive/src/backends/resize.rs +++ b/cursive/src/backends/resize.rs @@ -16,10 +16,8 @@ pub fn start_resize_thread( // This thread will listen to SIGWINCH events and report them. while resize_running.load(Ordering::Relaxed) { // We know it will only contain SIGWINCH signals, so no need to check. - if signals.wait().count() > 0 { - if resize_sender.send(()).is_err() { - return; - } + if signals.wait().count() > 0 && resize_sender.send(()).is_err() { + return; } } });