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) <noreply@anthropic.com>
This commit is contained in:
Stefan Hacker 2026-04-12 02:21:51 +02:00
parent eb49a034ed
commit f71103185c
1 changed files with 2 additions and 1 deletions

View File

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