mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[GH-ISSUE #407] Incorrect type for playlist position #130
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hrkfdn on GitHub (Apr 29, 2023).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/407
Describe the bug
With #375 some types were changed from integers to
chrono::Duration. While this is a great change, I believe a mistake snuck in:github.com/ramsayleung/rspotify@0a6c136b56/src/clients/oauth.rs (L292-L315)Expected behavior
The position in this method is a playlist position and not time related. I don't think
chrono::Durationis appropriate here. What do you think?@ramsayleung commented on GitHub (May 4, 2023):
Agree, it should be an integer instead of
Duration, because it's a zero-based index. I would like to fix it as soon as possible.@ramsayleung commented on GitHub (May 22, 2023):
This problem has been fixed, the type of
positionrollback toOption<u32>@hrkfdn commented on GitHub (May 22, 2023):
Hooray, thanks! 🎉