We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49d9270 commit 512885dCopy full SHA for 512885d
src/snapshot_vec.rs
@@ -150,7 +150,7 @@ impl<D: SnapshotVecDelegate> SnapshotVec<D> {
150
/// otherwise equivalent to -- invoking `set` for each element.
151
pub fn set_all(&mut self, mut new_elems: impl FnMut(usize) -> D::Value) {
152
if !self.in_snapshot() {
153
- for (slot, index) in self.values.iter_mut().zip(0..) {
+ for (index, slot) in self.values.iter_mut().enumerate() {
154
*slot = new_elems(index);
155
}
156
} else {
0 commit comments