From 842660720fd1f3d0b278b02cbe906df4c4989903 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sat, 31 Oct 2026 19:39:36 -0700 Subject: [PATCH 1/2] fix(kde): replace_configuration takes &Path, not &PathBuf clippy::ptr_arg (rustc 1.99 in the nix KDE clippy check) rejects &PathBuf where &Path will do. Callers passing &PathBuf still compile by deref. No behaviour change. Verified: native clippy --all-targets -D warnings over the KDE packages passes (see the next revision for the exact set). --- komorebi-for-kde/komorebi/src/process_command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komorebi-for-kde/komorebi/src/process_command.rs b/komorebi-for-kde/komorebi/src/process_command.rs index 60b5b3f0..9a9e4dc6 100644 --- a/komorebi-for-kde/komorebi/src/process_command.rs +++ b/komorebi-for-kde/komorebi/src/process_command.rs @@ -453,7 +453,7 @@ impl WindowManager { } /// Replaces the running configuration with the one in the file - pub fn replace_configuration(&mut self, config: &std::path::PathBuf) -> eyre::Result<()> { + pub fn replace_configuration(&mut self, config: &std::path::Path) -> eyre::Result<()> { // Check that this is a valid static config file first if StaticConfig::read(config).is_ok() { // Clear workspace rules; these will need to be replaced From b778cea2d4b411657944e6675903cbda6b51cd23 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sat, 31 Oct 2026 19:39:52 -0700 Subject: [PATCH 2/2] fix(kde): drop three useless .into() on MonitorId in kwin tests clippy::useless_conversion: the values are already komorebi_backend::MonitorId since the Backend id-type change, so .into() converts to the same type. One line is joined where the shorter call now fits, so rustfmt stays happy for the touched lines. Test code only, no behaviour change. Verified: native clippy --all-targets -D warnings over komorebi-linux, komorebic, komorebi-client, komorebi-hotkeys, komorebi-core, the shared crates the KDE flake sees and version-linux/komorebic-linux passes. --- komorebi-for-kde/komorebi/src/kwin/mod.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/komorebi-for-kde/komorebi/src/kwin/mod.rs b/komorebi-for-kde/komorebi/src/kwin/mod.rs index 93481b58..468b7b7b 100644 --- a/komorebi-for-kde/komorebi/src/kwin/mod.rs +++ b/komorebi-for-kde/komorebi/src/kwin/mod.rs @@ -1312,9 +1312,9 @@ mod tests { // the editor goes to the second workspace before the monitor is switched to it let monitor = backend.monitors().unwrap()[0].id; backend.set_window_workspace(1.into(), 1).unwrap(); - backend.switch_workspace(monitor.into(), 1).unwrap(); + backend.switch_workspace(monitor, 1).unwrap(); assert_eq!(backend.window_workspace(1.into()).unwrap(), Some(1)); - assert_eq!(backend.current_workspaces().unwrap(), [(monitor.into(), 1)]); + assert_eq!(backend.current_workspaces().unwrap(), [(monitor, 1)]); }, |backend| { // 51 of 255 is a fifth @@ -1509,8 +1509,7 @@ mod tests { .handle(&events[0], Instant::now()); let monitor = backend.monitors().unwrap()[0].id; - let missing = - backend.set_wallpaper(monitor.into(), std::path::Path::new("/nonexistent/a.png")); + let missing = backend.set_wallpaper(monitor, std::path::Path::new("/nonexistent/a.png")); assert!(missing.unwrap_err().to_string().contains("is not a file")); assert!(backend.shared.wallpapers.lock().is_empty()); }