-
Notifications
You must be signed in to change notification settings - Fork 217
Add serde Serialize/Deserialize for LanguageIdentifier. #89
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
Conversation
} | ||
|
||
#[test] | ||
fn deserialize() -> Result<(), Box<dyn std::error::Error>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, is the signature of the test to have a return value something specific to SerDe code, a Rust convention, or something else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a pure convenience - it allows the test function to use ?
shorthand operator. I could remove it and replace with .unwrap()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sffc do you want to remain on the blocking path? If not, I'd prefer if you removed yourself than me removing a pending reviewer :) |
This is a simple port of zbraniecki/unic-locale#57 which adds serializer/deserializer for
LanguageIdentifier
enabled when the crate is compiled withserde
.