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:
parent
eb49a034ed
commit
f71103185c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue