Skip to content

Conversation

ittorchbearer
Copy link
Contributor

I believe this was a bug as try_from has this functionality--while from_slice had functionality that failed on fractions. Either this is the proper decode fix, or the encoding needs fixed where .fract() adds ".0" to string.

@ittorchbearer ittorchbearer changed the title Update serde.rs Double canonical extended json fraction fails round trip Nov 23, 2022
@ittorchbearer ittorchbearer changed the title Double canonical extended json fraction fails round trip Double canonical extended json fraction fails round trip on Deserialize from_slice Nov 23, 2022
@abr-egn abr-egn self-assigned this Nov 28, 2022
@bajanam bajanam requested a review from abr-egn November 29, 2022 12:38
@abr-egn abr-egn merged commit 4704237 into mongodb:2.4.x Nov 29, 2022
@abr-egn
Copy link
Contributor

abr-egn commented Nov 29, 2022

Thanks for catching this and sending a fix! I've merged it and it'll go out with the next release.

abr-egn pushed a commit to abr-egn/bson-rust that referenced this pull request Jan 9, 2023
abr-egn added a commit that referenced this pull request Jan 10, 2023
Co-authored-by: mitchrmiller <69634302+mitchrmiller@users.noreply.github.com>
abr-egn added a commit that referenced this pull request Jan 10, 2023
Co-authored-by: mitchrmiller <69634302+mitchrmiller@users.noreply.github.com>
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.

2 participants