Skip to content

Commit

Permalink
[db] Fix suspicious implementation of f64 partial ord #750 (#751)
Browse files Browse the repository at this point in the history
fix f64 partial ord
  • Loading branch information
michaelvlach authored Nov 11, 2023
1 parent e277846 commit d38ed7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agdb/src/db/db_f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl PartialEq for DbF64 {

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

Expand Down

0 comments on commit d38ed7e

Please sign in to comment.