diff options
author | 2022-05-09 15:07:03 +0200 | |
---|---|---|
committer | 2022-05-09 15:07:03 +0200 | |
commit | 5c39f5c7ee2e87a2a431e3c8390d71ecabaf6d65 (patch) | |
tree | 08178532d16d7e54537eaa8fd4aebb7270418a84 /src/vec.rs | |
parent | 6877eedfd4ff0c19f66b504cfe523e8d3f097884 (diff) | |
download | heapless-5c39f5c7ee2e87a2a431e3c8390d71ecabaf6d65.tar.gz heapless-5c39f5c7ee2e87a2a431e3c8390d71ecabaf6d65.tar.zst heapless-5c39f5c7ee2e87a2a431e3c8390d71ecabaf6d65.zip |
fix: BinaryHeap elements are dropped twice
Diffstat (limited to '')
-rw-r--r-- | src/vec.rs | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -901,29 +901,6 @@ mod tests { assert!(v.is_full()); } - macro_rules! droppable { - () => { - struct Droppable; - impl Droppable { - fn new() -> Self { - unsafe { - COUNT += 1; - } - Droppable - } - } - impl Drop for Droppable { - fn drop(&mut self) { - unsafe { - COUNT -= 1; - } - } - } - - static mut COUNT: i32 = 0; - }; - } - #[test] fn drop() { droppable!(); |