Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add constructor function for all IntoDeserializer impls #2246

Merged
merged 1 commit into from Jul 11, 2022

Conversation

dtolnay
Copy link
Member

@dtolnay dtolnay commented Jul 11, 2022

For example StrDeserializer::<E>::new(str) is significantly clearer than IntoDeserializer::<E>::into_deserializer(str).

@dtolnay dtolnay merged commit 7e1486d into serde-rs:master Jul 11, 2022
@dtolnay dtolnay deleted the valuedenew branch July 11, 2022 04:50
Mingun added a commit to Mingun/quick-xml that referenced this pull request Oct 28, 2023
…l `deserialize_str` instead

Deserializer methods are only hints, if deserializer could not satisfy
request, it should return the data that it has. It is responsibility
of a Visitor to return an error if it does not understand the data

UnitDeserializer::new() available only since serde 1.0.139 (serde-rs/serde#2246)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant