Skip to content

Commit

Permalink
Added missing take
Browse files Browse the repository at this point in the history
  • Loading branch information
IBims1NicerTobi committed Jan 30, 2025
1 parent 80adf88 commit cfea612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/block_vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl<T, const BLOCK_SIZE: usize> Drop for BlockVec<T, BLOCK_SIZE> {
let num_remaining = self.length.get() % BLOCK_SIZE;

let block_vec = self.blocks.get_mut();
for i in block_vec.iter_mut() {
for i in block_vec.iter_mut().take(num_full_blocks) {
for v in i.deref_mut() {
unsafe {
v.assume_init_drop();
Expand Down

0 comments on commit cfea612

Please sign in to comment.