Skip to content

Fix #423 deserialising an identifier into a borrowed str#424

Merged
juntyr merged 1 commit into
ron-rs:masterfrom
juntyr:423-de-borrowed-identifier
Oct 18, 2022
Merged

Fix #423 deserialising an identifier into a borrowed str#424
juntyr merged 1 commit into
ron-rs:masterfrom
juntyr:423-de-borrowed-identifier

Conversation

@juntyr

@juntyr juntyr commented Oct 18, 2022

Copy link
Copy Markdown
Member

Fixes #423 by deserialising an identifier using visit_borrowed_str. This was probably never caught before since serge-derived code uses the less strict visit_str, but deserialising into a &str requires the borrowing.

  • I've included my change in CHANGELOG.md

@juntyr juntyr merged commit 27d2de4 into ron-rs:master Oct 18, 2022
@juntyr juntyr deleted the 423-de-borrowed-identifier branch October 18, 2022 08:21
juntyr added a commit to juntyr/ron that referenced this pull request Aug 15, 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.

How to deserialize a struct?

1 participant