fix: turns off dead code warning in heap_select
This commit is contained in:
@@ -41,6 +41,7 @@ impl<'a, T: PartialOrd> HeapSelect<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn peek(&self) -> &T {
|
pub fn peek(&self) -> &T {
|
||||||
return &self.heap[0];
|
return &self.heap[0];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user