Skip to content

Fixes #511: Allow deserialize_string for map fields originating from struct-formatted maps#512

Merged
juntyr merged 5 commits into
ron-rs:masterfrom
grindvoll:fix-issue-511
Oct 7, 2023
Merged

Fixes #511: Allow deserialize_string for map fields originating from struct-formatted maps#512
juntyr merged 5 commits into
ron-rs:masterfrom
grindvoll:fix-issue-511

Conversation

@grindvoll

@grindvoll grindvoll commented Oct 2, 2023

Copy link
Copy Markdown
Contributor

This commit fixes an incoherence problem in the Deserializer implementation for fields in struct-encoded maps. deserialize_str was accepted, while deserialize_string was rejected. This behavior caused a problem when deserializing e.g. serde_json::Values from RON-files.

  • I've included my change in CHANGELOG.md

@grindvoll grindvoll marked this pull request as ready for review October 2, 2023 14:37
Comment thread CHANGELOG.md Outdated
@codecov-commenter

codecov-commenter commented Oct 2, 2023

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (1ff0efa) to head (3dc831f).
⚠️ Report is 52 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #512   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           79        80    +1     
  Lines        11109     11178   +69     
=========================================
+ Hits         11109     11178   +69     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@juntyr

juntyr commented Oct 2, 2023

Copy link
Copy Markdown
Member

@grindvoll Thanks for the PR! It looks good to me once codecov is 100% and with the small CHANGELOG tweak.

Co-authored-by: Juniper Tyree <50025784+juntyr@users.noreply.github.com>
Comment thread tests/511_deserialize_any_map_string_key.rs
@juntyr

This comment was marked as resolved.

@juntyr juntyr mentioned this pull request Oct 6, 2023
49 tasks
@juntyr juntyr merged commit 2f3e5a8 into ron-rs:master Oct 7, 2023
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.

3 participants