mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-09 10:50:40 +00:00
Fix clippy lint
This commit is contained in:
parent
2065e1012c
commit
4d49b4c1d1
@ -16,10 +16,8 @@ pub fn start_resize_thread(
|
|||||||
// This thread will listen to SIGWINCH events and report them.
|
// This thread will listen to SIGWINCH events and report them.
|
||||||
while resize_running.load(Ordering::Relaxed) {
|
while resize_running.load(Ordering::Relaxed) {
|
||||||
// We know it will only contain SIGWINCH signals, so no need to check.
|
// We know it will only contain SIGWINCH signals, so no need to check.
|
||||||
if signals.wait().count() > 0 {
|
if signals.wait().count() > 0 && resize_sender.send(()).is_err() {
|
||||||
if resize_sender.send(()).is_err() {
|
return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user