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).
This commit is contained in:
LGUG2Z committed 2026-11-05 15:03:26 -08:00
1 parent e870eca239
commit 176dc0a8ba
1 file changed
+2 -3
+2 -3
View File
@@ -19,7 +19,6 @@ struct Host {
focused: usize,
pointer_on: Option<usize>,
calls: Vec<String>,
pointer_for_all: bool,
}
fn monitor(workspaces: usize) -> Monitor<StubPlatform> {
@@ -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();
}
}