summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
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() {}
};
}