forked from twilight-rs/twilight
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(model): simplify activity button text (de)serialization (twi…
…light-rs#2087) 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 twilight-rs#1364.
- Loading branch information
1 parent
1754351
commit a76334a
Showing
1 changed file
with
2 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters