diff --git a/crates/java_string/src/char.rs b/crates/java_string/src/char.rs index 5bc26a4f7..9d81961ca 100644 --- a/crates/java_string/src/char.rs +++ b/crates/java_string/src/char.rs @@ -767,7 +767,7 @@ impl Ord for JavaCodePoint { impl PartialOrd for JavaCodePoint { #[inline] fn partial_cmp(&self, other: &Self) -> Option { - self.as_u32().partial_cmp(&other.as_u32()) + Some(self.cmp(other)) } }