Commit b97658a
committed
Don't capture self in
Due to the changes to capture logic in rust 2024 when returning
`impl TYPE`, the result of `TableIter::iter()` currently captures an
immutable reference to `&self`. Thus, one cannot mutably use a
`TableIter` while the results of `TableIter::iter()` are being held.
Use precise capturing on `TableIter::iter()` to allow the mutable use of
`TableIter` while the result of `TableIter::iter()` is being held.
See: https://blog.rust-lang.org/2024/09/05/impl-trait-capture-rulesTableIter<'a, ...>::iter()
1 parent e7464a8 commit b97658a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments