Skip to content

Commit

Permalink
Merge pull request #43 from chris-ha458/clippy_fixes
Browse files Browse the repository at this point in the history
Clippy fixes
  • Loading branch information
coriolinus committed Sep 19, 2023
2 parents fee2fc1 + eca86c5 commit 1d41465
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/impls/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ where
{
fn default() -> Self {
Self {
map: Default::default(),
zero: Default::default(),
map: HashMap::default(),
zero: N::default(),
}
}
}
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@
//! assert!(counter.into_map() == expected);
//! ```

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

use num_traits::{One, Zero};
Expand Down Expand Up @@ -497,6 +498,7 @@ where
/// be worth experimenting to see which of the two methods is faster.
///
/// [`most_common_ordered`]: Counter::most_common_ordered
#[allow(clippy::missing_panics_doc)] // current implementation does not panic
pub fn k_most_common_ordered(&self, k: usize) -> Vec<(T, N)> {
use std::cmp::Reverse;

Expand Down

0 comments on commit 1d41465

Please sign in to comment.