Skip to content

Rust: Fix string deser bug with i64 and streaming JSON#217

Merged
dmkozh merged 4 commits intomasterfrom
fix-deser-streaming-json
May 14, 2025
Merged

Rust: Fix string deser bug with i64 and streaming JSON#217
dmkozh merged 4 commits intomasterfrom
fix-deser-streaming-json

Conversation

@leighmcculloch
Copy link
Copy Markdown
Member

What

Add support for deserializing i64 from owned String type in I64OrString.

Why

Some JSON deserializers use owned String instead of borrowed &str when streaming. Without this change, deserializing i64 values from string representation fails in streaming scenarios where the deserialized type cannot take a reference to a string owned elsewhere.

@leighmcculloch leighmcculloch marked this pull request as ready for review May 14, 2025 14:59
@dmkozh dmkozh merged commit 1dab922 into master May 14, 2025
5 checks passed
@dmkozh dmkozh deleted the fix-deser-streaming-json branch May 14, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants