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); } }