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

add derivable traits to PlayableId and PlayContextId #490

Merged
merged 2 commits into from
Aug 22, 2024

Conversation

SebRollen
Copy link
Contributor

@SebRollen SebRollen commented Aug 22, 2024

Description

This PR derives the traits Clone, Debug, PartialEq, Eq, Serialize and Hash for PlayContextId and PlayableId. These two types are enums around other ID types that already derive the same traits.

Motivation and Context

I'm currently working on a feature in a downstream crate and there are a few places where we could simplify the code a lot by having these traits be implemented for PlayableId. I have less need of the same for PlayContextId, but figured I might as well add that to the PR so that all IDs are covered.

Dependencies

None

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How has this been tested?

Not tested

Is this change properly documented?

Changelog updated

@ramsayleung ramsayleung merged commit 383876f into ramsayleung:master Aug 22, 2024
7 checks passed
@SebRollen SebRollen deleted the playable-id-impl branch August 22, 2024 16:26
SebRollen added a commit to SebRollen/rspotify that referenced this pull request Aug 22, 2024
@ramsayleung , thank you for merging ramsayleung#490

After you merged, I noticed that my CHANGELOG entry was under the wrong release. I moved the note to the unreleased portion.

Sidenote, but are you able to release these changes as a patch version update instead of waiting for v0.14 to land? Thank you!
@SebRollen SebRollen mentioned this pull request Aug 22, 2024
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