Commit 4680561
committed
fix(desktop): drop on_persist no-op clippy lint (closure is Copy)
clippy::dropping_copy_types rejected drop(on_persist) — the closure only borrows &sentinel_repo (a Copy type), so dropping it is a no-op. The borrow ends naturally with the last use inside run_scan_live above. Removed the line + added a WHY comment explaining why no explicit drop is needed.1 parent 4bc301b commit 4680561
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
418 | 420 | | |
419 | 421 | | |
420 | 422 | | |
| |||
0 commit comments