fixed fmt
This commit is contained in:
1 parent
e99e307790
commit
e1cce7b5b3
5 files changed
+22
-18
No files matched your search
@@ -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)?;
|
||||
|
||||
Reference in new issue
Block a user