From f71103185c71214cc4285bc5765542e9d97aa560 Mon Sep 17 00:00:00 2001 From: Stefan Hacker Date: Sun, 12 Apr 2026 02:21:51 +0200 Subject: [PATCH] fix: Borrow-Checker - sync_paths klonen vor der Iteration Kann nicht &self.sync_paths iterieren und gleichzeitig &mut self Methoden aufrufen. Clone der Liste loest den Konflikt. Co-Authored-By: Claude Opus 4.6 (1M context) --- clients/desktop/src-tauri/src/sync/engine.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clients/desktop/src-tauri/src/sync/engine.rs b/clients/desktop/src-tauri/src/sync/engine.rs index 8406ec8..1d84ab9 100644 --- a/clients/desktop/src-tauri/src/sync/engine.rs +++ b/clients/desktop/src-tauri/src/sync/engine.rs @@ -52,7 +52,8 @@ impl SyncEngine { let tree = self.api.get_sync_tree().await?; - for sp in &self.sync_paths { + let sync_paths = self.sync_paths.clone(); + for sp in &sync_paths { if !sp.enabled { continue; } let local_dir = PathBuf::from(&sp.local_dir);