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

refactor(model): simplify activity button text (de)serialization #2087

Merged
merged 1 commit into from
Jan 28, 2023

Conversation

zeylahellyer
Copy link
Member

Simplify the (de)serialization of
gateway::presence::activity_button::ActivityButtonText. We can remove the custom Deserialize and Serialize implementations by taking advantage of the fact that it has only one field, and instead using #[serde(transparent)].

Part of #1364.

Simplify the (de)serialization of
`gateway::presence::activity_button::ActivityButtonText`. We can remove
the custom Deserialize and Serialize implementations by taking advantage
of the fact that it has only one field, and instead using
`#[serde(transparent)]`.

Part of #1364.
@github-actions github-actions bot added c-model Affects the model crate t-refactor Refactors APIs or code. labels Jan 25, 2023
@zeylahellyer zeylahellyer merged commit a76334a into main Jan 28, 2023
@zeylahellyer zeylahellyer deleted the zeyla/refactor-model-activity-button-text-serde branch January 28, 2023 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-model Affects the model crate t-refactor Refactors APIs or code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants