-
Notifications
You must be signed in to change notification settings - Fork 185
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
Serde impls for VarULE types (Var tuple types, and make_var) #5802
Conversation
6bffc5d
to
fb908a2
Compare
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.
The impls look about right; can you add more tests? Most serde impls I write have a test that puts them inside of a Cow
in a struct with #[derive(Serialize, Deserialize)]
and then runs them with both JSON and bincode/postcard and tests that they round-trip and borrow/own correctly.
Oh yeah I was planning to test more but it was becoming the weekend so i wrapped up. I'll add tests and fix things when I get a chance. |
Added some tests. We do keep hitting rust-lang/rust#130180 :/ |
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.
Would still like to see tests that also exercise deserialize_with
We were missing these.
This also gives me a much clearer idea of what's needed in #5561. I might go and implement that, but I may also just use what we have for now for DecimalSymbolsV1.