From 1c3559a9ddbd4eb369fd9146ee8e0b207af8d30b Mon Sep 17 00:00:00 2001 From: Alex Martens Date: Fri, 20 Oct 2023 21:04:19 +0900 Subject: [PATCH] linear_map: allow dropping references --- src/linear_map.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/linear_map.rs b/src/linear_map.rs index d096f210a2..896e756571 100644 --- a/src/linear_map.rs +++ b/src/linear_map.rs @@ -462,6 +462,7 @@ impl<'a, K, V> Clone for Iter<'a, K, V> { } impl Drop for LinearMap { + #[allow(dropping_references)] fn drop(&mut self) { // heapless::Vec implements drop right? drop(&self.buffer);