fixed fmt

This commit is contained in:
objz committed 2026-08-24 19:17:37 +02:00
1 parent e99e307790
commit e1cce7b5b3
5 files changed
+22 -18

No files matched your search

+1 -4
View File
@@ -243,10 +243,7 @@ fn mirror_dir(src: &Path, dst: &Path) -> Result<(), ConfigSyncError> {
.into());
};
std::fs::create_dir_all(parent)?;
let name = dst
.file_name()
.and_then(|s| s.to_str())
.unwrap_or("mirror");
let name = dst.file_name().and_then(|s| s.to_str()).unwrap_or("mirror");
let staging = parent.join(format!(".{name}.mirror-tmp"));
if staging.exists() {
remove_path(&staging)?;