Skip to content

Refactor discord Rpc to be more readable and require less mut #427

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

Merged
merged 6 commits into from
Feb 25, 2025

Conversation

hasezoey
Copy link
Contributor

@hasezoey hasezoey commented Feb 21, 2025

This function refactors discord::Rpc and touching code to be less nested, more documented and dont require mut self where not necessary anymore.
Additionally, the try_recv has been changed to just recv as we dont need to check or update anything other than that channel in that thread.

Also includes some slight style changes regarding playback::playlist and also moves the playlist stop procedure to a dedicated function.

PS: for lint CI failures, see #426

@tramhao tramhao merged commit 6266af7 into tramhao:master Feb 25, 2025
4 of 5 checks passed
@hasezoey hasezoey deleted the refactorDiscord branch February 25, 2025 08:38
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