Skip to content

Commit

Permalink
missing_panics_docs
Browse files Browse the repository at this point in the history
I'm not sure if this can actually panic?
  • Loading branch information
chris-ha458 committed Sep 19, 2023
1 parent d30b6ba commit 354b5f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@
//! assert!(counter.into_map() == expected);
//! ```


#![allow(clippy::must_use_candidate)]
mod impls;

Expand Down Expand Up @@ -499,6 +498,9 @@ where
/// be worth experimenting to see which of the two methods is faster.
///
/// [`most_common_ordered`]: Counter::most_common_ordered
///
/// # Panics
/// Panics if heap is empty
pub fn k_most_common_ordered(&self, k: usize) -> Vec<(T, N)> {
use std::cmp::Reverse;

Expand Down

0 comments on commit 354b5f9

Please sign in to comment.