Skip to content

Commit

Permalink
[ISSUE #39]Fix serde Serialize error
Browse files Browse the repository at this point in the history
  • Loading branch information
rust-learn-now authored Nov 13, 2024
1 parent e313231 commit 7f74edc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ impl Serialize for CheetahString {
match &self.inner {
InnerString::ArcString(s) => serializer.serialize_str(s.as_str()),
InnerString::StaticStr(s) => serializer.serialize_str(s),
InnerString::ArcVecString(s) => serializer.serialize_bytes(s),
#[cfg(feature = "bytes")]
InnerString::Bytes(bytes) => serializer.serialize_bytes(bytes.as_ref()),
InnerString::Empty => serializer.serialize_bytes(&[]),
Expand Down

0 comments on commit 7f74edc

Please sign in to comment.