From 67a7afbda70e9a0f50fdd6d4d922efd3cc917d00 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 5 Oct 2023 19:15:05 -0700 Subject: [PATCH] Fix clippy lint in `crates/java_string/src/char.rs` --- crates/java_string/src/char.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) } }