diff --git a/agdb/src/db/db_f64.rs b/agdb/src/db/db_f64.rs index 6085a006..a6e6fbd6 100644 --- a/agdb/src/db/db_f64.rs +++ b/agdb/src/db/db_f64.rs @@ -44,7 +44,7 @@ impl PartialEq for DbF64 { impl PartialOrd for DbF64 { fn partial_cmp(&self, other: &Self) -> Option { - Some(self.0.total_cmp(&other.0)) + Some(std::cmp::Ord::cmp(self, other)) } }