jid: Fix a clippy warning

Emmanuel Gil Peyrot created

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.

Change summary

jid/src/lib.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

jid/src/lib.rs 🔗

@@ -105,7 +105,7 @@ impl PartialEq for Jid {
 
 impl PartialOrd for Jid {
     fn partial_cmp(&self, other: &Jid) -> Option<Ordering> {
-        self.normalized.partial_cmp(&other.normalized)
+        Some(self.cmp(other))
     }
 }