mirror of
https://github.com/JakeStanger/mpd-discord-rpc.git
synced 2026-07-11 21:15:29 +01:00
[PR #3] [MERGED] Some minor changes on the PR #1648
Labels
No labels
bug
enhancement
help wanted
package
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/mpd-discord-rpc#1648
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?
📋 Pull Request Information
Original PR: https://github.com/JakeStanger/mpd-discord-rpc/pull/3
Author: @simvux
Created: 3/13/2020
Status: ✅ Merged
Merged: 3/13/2020
Merged by: @JakeStanger
Base:
feat/formatting-config← Head:feat/formatting-config📝 Commits (3)
7d0cc25Fancier error handling in that match statemente94b5destatic -> const7f92219Removed some unessesarry references📊 Changes
1 file changed (+22 additions, -23 deletions)
View changed files
📝
src/main.rs(+22 -23)📄 Description
In general you should also use toml::from_str onto a struct you create which matches your toml config, this would have many times better performance than the dynamic runtime parsing you're doing now at the first few lines of main.rs. However this would be a much larger change so I'm leaving that up to you.
Would also be good to create a struct which contains your state, then creating methods for that struct. Instead of just using loose variables. But this is also a larger change so I'm skipping that for now.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.