Skip to content

Commit 061a15d

Browse files
committed
fix: serialize bytes
1 parent e1020cb commit 061a15d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hstr/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ impl serde::ser::Serialize for Wtf8Atom {
538538
where
539539
S: serde::ser::Serializer,
540540
{
541-
serializer.serialize_str(self)
541+
serializer.serialize_bytes(self.as_bytes())
542542
}
543543
}
544544

0 commit comments

Comments
 (0)