From ff588d834e2b5bd8aa381f979555794bf134e7c3 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 3 Jul 2024 14:27:16 +0200 Subject: [PATCH] jid: Fix a clippy warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The other three are about missing Self in the new method’s return type, but these return the Cow type instead so that’s how they’re meant to be. --- jid/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jid/src/lib.rs b/jid/src/lib.rs index 16078e1f..770044cf 100644 --- a/jid/src/lib.rs +++ b/jid/src/lib.rs @@ -105,7 +105,7 @@ impl PartialEq for Jid { impl PartialOrd for Jid { fn partial_cmp(&self, other: &Jid) -> Option { - self.normalized.partial_cmp(&other.normalized) + Some(self.cmp(other)) } }