diff options
author | tcmal <me@aria.rip> | 2024-06-27 00:14:53 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-06-27 00:14:53 +0100 |
commit | 0e0725038dc645e4e0846f9a0de8d0b8a932e03d (patch) | |
tree | 9ebeb518f535f29493fd8c77ecf9ab7eaa7cc912 /src/main.rs | |
parent | 6d0af908b2ac28cef7b43e3a5624ef5bc96f83b1 (diff) |
lints
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index abefd93..d1c9a27 100644 --- a/src/main.rs +++ b/src/main.rs @@ -90,10 +90,10 @@ impl<'a> WM<'a> { // See clients/mod.rs Event::X(x::Event::ConfigureRequest(e)) => { - self.handle_configure_request(&e)? + self.handle_configure_request(&e)?; } Event::X(x::Event::ConfigureNotify(e)) => { - self.handle_configure_notify(&e)? + self.handle_configure_notify(&e)?; } Event::X(x::Event::DestroyNotify(e)) => self.handle_destroy_notify(&e), Event::X(x::Event::MapRequest(e)) => self.handle_map_request(&e)?, @@ -147,6 +147,6 @@ fn cleanup_process_children() { .unwrap(); // Immediately wait for zombie processes to die - sometimes these come from startx. - while let Ok(_) = waitpid(Pid::from_raw(-1), Some(WaitPidFlag::WNOHANG)) {} + while waitpid(Pid::from_raw(-1), Some(WaitPidFlag::WNOHANG)).is_ok() {} }; } |