diff --git a/jid/src/lib.rs b/jid/src/lib.rs index 291e53f..f49ee99 100644 --- a/jid/src/lib.rs +++ b/jid/src/lib.rs @@ -325,7 +325,7 @@ impl Serialize for FullJid { where S: Serializer, { - serializer.serialize_str(String::from(self).as_str()) + serializer.serialize_str(&self.inner.normalized) } } @@ -335,7 +335,7 @@ impl Serialize for BareJid { where S: Serializer, { - serializer.serialize_str(String::from(self).as_str()) + serializer.serialize_str(&self.inner.normalized) } }