Commit 504ce28
committed
Fix borrow in drop_indices patch — iterate Vec by reference
cargo failed with E0308 expected &Arc<Index>, found Arc<Index> on
`alloc_cursor_index(None, index)`. The original code iterated over
an iterator yielding &Arc<Index>; collecting into Vec<Arc<Index>> and
iterating with `for index in indices` yields owned Arc<Index>.
Iterate `for index in &indices` so `index` matches the original
&Arc<Index> binding. Verified with a local cargo check against
375f5d55e26aa90c54abaadce7e035d8d0c6893d.1 parent 8c56b0a commit 504ce28
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
710 | | - | |
| 710 | + | |
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
| |||
0 commit comments