diff --git a/url/src/lib.rs b/url/src/lib.rs index 58c7c07cd..6879d9f63 100644 --- a/url/src/lib.rs +++ b/url/src/lib.rs @@ -2697,7 +2697,7 @@ impl Ord for Url { impl PartialOrd for Url { #[inline] fn partial_cmp(&self, other: &Self) -> Option { - self.serialization.partial_cmp(&other.serialization) + Some(self.cmp(other)) } }