From 176dc0a8baec26a22c2703e50a434ccef87579ed Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sat, 31 Oct 2026 18:57:48 -0700 Subject: [PATCH] test(core): make the command tests clean under clippy -D warnings komorebi-core is in the workspace default-members since the review fixes, so a bare clippy --all-targets -D warnings now covers its test files. crates/komorebi-core/tests/commands.rs (wip-u-cmd) had two findings that only show there: an unused Result of new_container_for_window (now unwrap()ed: the stub window cannot fail) and a never-read field pointer_for_all (removed: the Windows switch is tested through the associated const in its own host type). No behaviour change; verified: cargo test -p komorebi-core and the Windows clippy (bare, default-members). --- crates/komorebi-core/tests/commands.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/komorebi-core/tests/commands.rs b/crates/komorebi-core/tests/commands.rs index d57e4123..f82f86ee 100644 --- a/crates/komorebi-core/tests/commands.rs +++ b/crates/komorebi-core/tests/commands.rs @@ -19,7 +19,6 @@ struct Host { focused: usize, pointer_on: Option, calls: Vec, - pointer_for_all: bool, } fn monitor(workspaces: usize) -> Monitor { @@ -50,7 +49,6 @@ impl Host { focused: 0, pointer_on: None, calls: vec![], - pointer_for_all: false, } } @@ -61,7 +59,8 @@ impl Host { /// puts a window on workspace `idx` of the focused monitor fn occupy(&mut self, idx: usize, window: u32) { self.monitors[self.focused].workspaces_mut()[idx] - .new_container_for_window(StubWindow { id: window }); + .new_container_for_window(StubWindow { id: window }) + .unwrap(); } }