Skip to content

Commit

Permalink
linear_map: allow dropping references
Browse files Browse the repository at this point in the history
  • Loading branch information
newAM committed Oct 20, 2023
1 parent 644653b commit 1c3559a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/linear_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ impl<'a, K, V> Clone for Iter<'a, K, V> {
}

impl<K, V, const N: usize> Drop for LinearMap<K, V, N> {
#[allow(dropping_references)]
fn drop(&mut self) {
// heapless::Vec implements drop right?
drop(&self.buffer);
Expand Down

0 comments on commit 1c3559a

Please sign in to comment.