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]; }