From 508ee46752e277365130f7d88eb3a38ed9550587 Mon Sep 17 00:00:00 2001 From: Joshua Booth Date: Fri, 6 Dec 2024 09:42:35 -0800 Subject: [PATCH] Update crates/cxx-qt-build/src/dir.rs Co-authored-by: Leon Matthes --- crates/cxx-qt-build/src/dir.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/cxx-qt-build/src/dir.rs b/crates/cxx-qt-build/src/dir.rs index 9de696d64..dde0cfb93 100644 --- a/crates/cxx-qt-build/src/dir.rs +++ b/crates/cxx-qt-build/src/dir.rs @@ -122,9 +122,7 @@ fn deep_copy_directory(source: &Path, dest: &Path) -> Result { } if !dest_path.try_exists()? { fs::copy(&source_path, &dest_path)?; - continue; - } - if files_conflict(&source_path, &dest_path)? { + else if files_conflict(&source_path, &dest_path)? { return Ok(false); } }