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

Implement Clone for ErasedJson #2142

Merged
merged 2 commits into from
Aug 2, 2023
Merged

Implement Clone for ErasedJson #2142

merged 2 commits into from
Aug 2, 2023

Conversation

jplatte
Copy link
Member

@jplatte jplatte commented Aug 2, 2023

Motivation

Makes ErasedJson a Handler. Also kinda expected, maybe? All of Json, Html and so on implement Clone.

Solution

Implement Clone. Requires the serde_json error to be wrapped in Arc because it's not Clone, but failing to serialize should be an extremely rare edge-case.

@jplatte
Copy link
Member Author

jplatte commented Aug 2, 2023

Hope you don't mind me drive-by removing the duplicate "added" from the changelog ^^

@jplatte jplatte enabled auto-merge (squash) August 2, 2023 19:29
@jplatte jplatte merged commit 8af3876 into main Aug 2, 2023
17 checks passed
@jplatte jplatte deleted the erased-json-clone branch August 2, 2023 19:35
jplatte added a commit that referenced this pull request Aug 2, 2023
jplatte added a commit that referenced this pull request Aug 2, 2023
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