mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[GH-ISSUE #322] Help needed with adding to the queue #102
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#102
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 @Staninna on GitHub (Jun 2, 2022).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/322
Not really a bug but more a question for help.
I am trying to put a song in the queue and then play it after 35 seconds skip it and repeat.
but I get errors I'm stuck on this for a few days now and it is really demotivating.
I hope I don't break any rules I just need a little help.
Reposetory
File in question
my code
Errors I get
Not in the current state of the repo but in this statehttps://pastebin.com/bjdXZyTz
I am pretty new to rust
@Staninna commented on GitHub (Jun 2, 2022):
If I add a reference to
track_id.unwrap()when I calladd_items_to_queuei get another error that I edited into the OP but I will put it here toocode
Error
I also updated the repo if that is any helpful to you with those 3 lines of code
@marioortizmanero commented on GitHub (Jun 2, 2022):
Ah sorry, I removed my comment because I had misread it. It looks like the repository you shared is private and I can't see the files.
Also, it looks like you want to return a
Resultso that you can avoid so manyunwrapswith the?operator instead.This will probably become a bit easier to use after #305 is merged and released in the next version. Maybe you should try with that? I'll try to bump it soon.
@Staninna commented on GitHub (Jun 2, 2022):
Sorry I made it public now
And I tried lots of different things with the
track_idbut I don't understand what it is supposed to be I know it would be this but I don't know what it isMaybe I have to put a hold on this project and revisit it when #305 is merged
@marioortizmanero commented on GitHub (Jun 2, 2022):
Yeah I think that's not possible until #305, sorry for the inconveniences!
&dyn Traitdoesn't implementTrait, onlydyn Traitdoes. However, the function asks for a&Trait, so it's impossible to have both.We'll try to get it merged this/next week and I'll ping you to get some feedback.
@Staninna commented on GitHub (Jun 2, 2022):
It is okay I will wait till #305 gets merged don't rush it I got plenty of other things to do
Thanks for your quick support