fix(jid): Fix JID serialization with serde; address oversight in commit cdf4486e

This commit is contained in:
mb 2023-08-03 16:26:14 +02:00 committed by Link Mauve
parent 2ad0dd66dd
commit 997303900b

View file

@ -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)
}
}