Skip to content

Commit 49541e9

Browse files
committed
Fix "calls to drop with a reference instead of an owned value does nothing"
1 parent 217dde4 commit 49541e9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/linear_map.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -461,15 +461,6 @@ impl<'a, K, V> Clone for Iter<'a, K, V> {
461461
}
462462
}
463463

464-
impl<K, V, const N: usize> Drop for LinearMap<K, V, N> {
465-
fn drop(&mut self) {
466-
// heapless::Vec implements drop right?
467-
drop(&self.buffer);
468-
// original code below
469-
// unsafe { ptr::drop_in_place(self.buffer.as_mut_slice()) }
470-
}
471-
}
472-
473464
pub struct IterMut<'a, K, V> {
474465
iter: slice::IterMut<'a, (K, V)>,
475466
}

0 commit comments

Comments
 (0)