From e39c9a20bed6bc69d4efe9e2fe12d923900fcd67 Mon Sep 17 00:00:00 2001 From: Valentin Gosu <1454649+valenting@users.noreply.github.com> Date: Tue, 7 Nov 2023 22:32:21 +0100 Subject: [PATCH] Fix clippy (#878) --- url/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) } }