Skip to content

Commit

Permalink
#10 re
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 12, 2023
1 parent d46f5a2 commit 7e40ffd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/iterators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ impl<'a, V: Copy, const N: usize> Iterator for Iter<'a, V, N> {
if self.pos >= self.next {
None
} else {
let v = unsafe { self.items.add(self.pos) };
self.pos += 1;
unsafe { v.as_ref() }
unsafe {
let v = self.items.add(self.pos);
self.pos += 1;
v.as_ref()
}
}
}
}
Expand Down

0 comments on commit 7e40ffd

Please sign in to comment.