Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Dec 11, 2023
1 parent 54d3f07 commit 9078ca7
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 @@ -23,14 +23,16 @@ pub struct Krate {
}

impl Ord for Krate {
#[inline]
fn cmp(&self, b: &Self) -> std::cmp::Ordering {
self.source.cmp(&b.source)
}
}

impl PartialOrd for Krate {
#[inline]
fn partial_cmp(&self, b: &Self) -> Option<std::cmp::Ordering> {
self.source.partial_cmp(&b.source)
Some(self.cmp(b))
}
}

Expand Down

0 comments on commit 9078ca7

Please sign in to comment.