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).
This commit is contained in:
LGUG2Z committed 2026-11-05 15:03:26 -08:00
1 parent 7a69f692ba
commit 842660720f
1 file changed
+1 -1
@@ -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