Skip to content

Commit

Permalink
fix clippy warnings (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
rex4539 authored Feb 8, 2025
1 parent 040dfe3 commit 58cc662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/keywords/tfidf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ struct HeapNode<'a> {
word: &'a str,
}

impl<'a> Ord for HeapNode<'a> {
impl Ord for HeapNode<'_> {
fn cmp(&self, other: &HeapNode) -> Ordering {
other.tfidf.cmp(&self.tfidf).then_with(|| self.word.cmp(other.word))
}
}

impl<'a> PartialOrd for HeapNode<'a> {
impl PartialOrd for HeapNode<'_> {
fn partial_cmp(&self, other: &HeapNode) -> Option<Ordering> {
Some(self.cmp(other))
}
Expand Down

0 comments on commit 58cc662

Please sign in to comment.