Skip to content

Commit

Permalink
Make PartialOrd impl canonical for Empirical
Browse files Browse the repository at this point in the history
  • Loading branch information
FreezyLemon committed Apr 28, 2024
1 parent 9e63ee4 commit 239baf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distribution/empirical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ impl<T: PartialEq> Eq for NonNAN<T> {}

impl<T: PartialOrd> PartialOrd for NonNAN<T> {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
self.0.partial_cmp(&other.0)
Some(self.cmp(other))
}
}

Expand Down

0 comments on commit 239baf4

Please sign in to comment.