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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user