mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-17 06:11:21 +01:00
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:
1 parent
e870eca239
commit
176dc0a8ba
1 file changed
+2
-3
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user