-
Notifications
You must be signed in to change notification settings - Fork 124
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
Fix the remaining TODOs #257
Conversation
0c5f411
to
7bc0d6d
Compare
f8bc323
to
10dfa4b
Compare
CHANGELOG.md
Outdated
+ `playlist_replace_tracks` is now `playlist_replace_items` | ||
+ `playlist_reorder_tracks` is now `playlist_reorder_items` | ||
+ `playlist_remove_all_occurrences_of_tracks` is now `playlist_remove_all_occurrences_of_items` | ||
+ `playlist_remove_specific_occurrences_of_tracks` is now `playlist_remove_specific_occurrences_of_tracks` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
playlist_remove_specific_occurrences_of_tracks
is nowplaylist_remove_specific_occurrences_of_tracks
It should be playlist_remove_specific_occurrences_of_tracks
is now playlist_remove_specific_occurrences_of_items
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup that's a typo
rspotify-model/src/track.rs
Outdated
@@ -92,7 +92,7 @@ pub struct SavedTrack { | |||
} | |||
|
|||
/// Track id with specific positions track in a playlist | |||
pub struct TrackPositions { | |||
pub struct ItemPositions { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you have renamed TrackPositions
to ItemPositions
, should we change the id
field to something like PlayableId
(ItemId
)?
And we should update the doc above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, so I've modified ItemPositions
so that it uses borrowed data instead of owned, including &dyn PlayableId
instead of Box<dyn PlayableId>
. This is because ItemPositions
is only passed as a short-lived wrapper and doesn't really need to hold data, in my opinion. This way we can avoid two unnecessary allocations. If that's OK with you you can merge. Otherwise we can make it owned.
Description
headers
toparams
URI_WRONGTYPE2
Motivation and Context
We can finally close #127 after this, believe it or not! :))
Dependencies
None
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
CI passes successfully