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

Use PortableRegistry for encoding and serializing #40

Merged
merged 5 commits into from
Jan 5, 2021

Conversation

ascjones
Copy link
Contributor

@ascjones ascjones commented Dec 15, 2020

Removes custom encoding/serialization from the Registry and instead uses the PortableRegistry which already provides a From<Registry> impl.

@ascjones ascjones mentioned this pull request Dec 15, 2020
8 tasks
@ascjones ascjones marked this pull request as ready for review January 5, 2021 09:48
@ascjones ascjones requested a review from dvdplm January 5, 2021 09:48
@ascjones ascjones changed the title Use RegistryReadOnly for encoding and serializing Use PortableRegistry for encoding and serializing Jan 5, 2021
@@ -296,6 +297,7 @@ fn test_recursive_type_with_box() {
]
});

let registry: PortableRegistry = registry.into();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you could do serde_json::to_value::<PortableRegistry>(registry.into()) but that's not better.

Copy link
Contributor

@dvdplm dvdplm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ascjones ascjones merged commit 0db99c7 into master Jan 5, 2021
@ascjones ascjones deleted the aj-encode-readonly branch January 5, 2021 11:26
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