fmt
CI / build (push) Failing after 1m56s
CI / snap (push) Has been skipped

This commit is contained in:
2026-07-22 14:36:28 +02:00
parent 48248fdf9c
commit 768e1c4f78
7 changed files with 32 additions and 47 deletions
+4 -1
View File
@@ -104,7 +104,10 @@ fn copy_dir_all(src: &Path, dst: &Path) -> Result<(), Box<dyn Error>> {
// Reproduce symlinks as symlinks rather than following them, so that
// dangling/absolute symlinks do not abort the copy.
if std::fs::symlink_metadata(&src_path)?.file_type().is_symlink() {
if std::fs::symlink_metadata(&src_path)?
.file_type()
.is_symlink()
{
let target = std::fs::read_link(&src_path)?;
let _ = std::fs::remove_file(&dst_path);
symlink(&target, &dst_path)?;