mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 17:35:50 +03:00
[GH-ISSUE #231] Borrow checker not happy about TrackId reference. #115
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#115
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 @nuugen on GitHub (Aug 5, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/231
Describe the bug
Code is not passing borrow checker after the latest commit implementing playlist-related CLI commands. Specifically, the reference to the
TrackIdis pushed to the a buffer that outlives the lifetime of the allocated data indeleted_hash_set.To Reproduce
Run
cargo checkin project root.Expected behavior
No borrow checking error.
Log and backtrace
Environment
e8cfab9dc923f6e293669d92a6e2fb5f17f10d40spotify_player@aome510 commented on GitHub (Aug 5, 2023):
Interesting, I didn’t see any issues when building the code. CIs also look fine.
Will check again later td.
cc @justjokiing. Maybe you can double check
@aome510 commented on GitHub (Aug 5, 2023):
Are you using the latest Rust?
@nuugen commented on GitHub (Aug 5, 2023):
Oh, that was the problem. After updating from my outdated Rust from March, it was happy again!
Thanks!