diff --git a/src/points.rs b/src/points.rs index 3f9954a..0f60398 100644 --- a/src/points.rs +++ b/src/points.rs @@ -156,7 +156,7 @@ impl PartialEq for RistrettoBoth { impl PartialOrd for RistrettoBoth { fn partial_cmp(&self, other: &RistrettoBoth) -> Option<::core::cmp::Ordering> { - self.compressed.0.partial_cmp(&other.compressed.0) + Some(self.cmp(other)) } }