fix: turns off dead code warning in heap_select

This commit is contained in:
Volodymyr Orlov
2020-08-29 16:58:04 -07:00
parent c34eae6a9b
commit 8705867386
+1
View File
@@ -41,6 +41,7 @@ impl<'a, T: PartialOrd> HeapSelect<T> {
}
}
#[allow(dead_code)]
pub fn peek(&self) -> &T {
return &self.heap[0];
}