https://git.tonybtw.com/oxwm.git
git://git.tonybtw.com/oxwm.git
use let-else syntax in divergent match in `scan_existing_windows`
Diff
diff --git a/src/window_manager.rs b/src/window_manager.rs
index e0c17cf..0f2a4cb 100644
--- a/src/window_manager.rs
+++ b/src/window_manager.rs
@@ -170,9 +170,8 @@ impl WindowManager {
continue;
}
- let attrs = match self.connection.get_window_attributes(window)?.reply() {
- Ok(attrs) => attrs,
- Err(_) => continue,
+ let Ok(attrs) = self.connection.get_window_attributes(window)?.reply() else {
+ continue;
};
if attrs.override_redirect {