tweak: use path.with_added_extension

This commit is contained in:
Adil Hanney 2026-02-10 15:55:06 +00:00
parent 8fa5251f62
commit 77ecc2034c
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -283,7 +283,7 @@ contrast=4
#[cold]
fn backup_non_cosmic_kdeglobals(path: &Path) -> io::Result<()> {
if !Self::is_cosmic_kdeglobals(path)?.unwrap_or(true) {
let backup_path = path.with_extension("bak");
let backup_path = path.with_added_extension("bak");
fs::rename(path, &backup_path)?;
}
Ok(())