From 870586738671cbdd78a065797c108f160205927f Mon Sep 17 00:00:00 2001 From: Volodymyr Orlov Date: Sat, 29 Aug 2020 16:58:04 -0700 Subject: [PATCH] fix: turns off dead code warning in heap_select --- src/algorithm/sort/heap_select.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/algorithm/sort/heap_select.rs b/src/algorithm/sort/heap_select.rs index 7c3d534..6c13b9b 100644 --- a/src/algorithm/sort/heap_select.rs +++ b/src/algorithm/sort/heap_select.rs @@ -41,6 +41,7 @@ impl<'a, T: PartialOrd> HeapSelect { } } + #[allow(dead_code)] pub fn peek(&self) -> &T { return &self.heap[0]; }