From 997303900bd6e497404a6c70486d9791563ad09e Mon Sep 17 00:00:00 2001 From: mb Date: Thu, 3 Aug 2023 16:26:14 +0200 Subject: [PATCH] fix(jid): Fix JID serialization with serde; address oversight in commit cdf4486e --- jid/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jid/src/lib.rs b/jid/src/lib.rs index 291e53f3..f49ee99d 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) } }