[PR #4] [MERGED] Use structs for configuration #1117

Closed
opened 2026-05-23 01:58:28 +01:00 by JakeStanger · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/mpd-discord-rpc/pull/4
Author: @JakeStanger
Created: 3/20/2020
Status: Merged
Merged: 3/20/2020
Merged by: @JakeStanger

Base: masterHead: ref/config-structs


📝 Commits (6)

  • 33e7457 chore(dependency): add serde with derive support
  • d4f88fe refactor(config): [wip] use structs for (de)serialisation
  • 54a74f3 refactor(config): use structs for (de)serialisation
  • dd720d4 chore(release): v1.1.1
  • 2a0c9ac docs: use consistent quotemarks
  • 402d564 refactor: remove redundant code

📊 Changes

4 files changed (+52 additions, -43 deletions)

View changed files

📝 Cargo.lock (+5 -1)
📝 Cargo.toml (+2 -1)
📝 README.md (+1 -1)
📝 src/main.rs (+44 -40)

📄 Description

Static typed config file, no need for dumb hard-coded string.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/JakeStanger/mpd-discord-rpc/pull/4 **Author:** [@JakeStanger](https://github.com/JakeStanger) **Created:** 3/20/2020 **Status:** ✅ Merged **Merged:** 3/20/2020 **Merged by:** [@JakeStanger](https://github.com/JakeStanger) **Base:** `master` ← **Head:** `ref/config-structs` --- ### 📝 Commits (6) - [`33e7457`](https://github.com/JakeStanger/mpd-discord-rpc/commit/33e7457ab07d0ad903c1e025414ecbdedad5d67c) chore(dependency): add serde with derive support - [`d4f88fe`](https://github.com/JakeStanger/mpd-discord-rpc/commit/d4f88fee7a5a3fd393cca7e3e7965e165ae0ca18) refactor(config): [wip] use structs for (de)serialisation - [`54a74f3`](https://github.com/JakeStanger/mpd-discord-rpc/commit/54a74f33b354f4eb6ab483cf76bb003476fa7670) refactor(config): use structs for (de)serialisation - [`dd720d4`](https://github.com/JakeStanger/mpd-discord-rpc/commit/dd720d4a86ccaf9183899167d6760dd083f63bb6) chore(release): v1.1.1 - [`2a0c9ac`](https://github.com/JakeStanger/mpd-discord-rpc/commit/2a0c9accc82698f2860872f5e6cf2149094094a1) docs: use consistent quotemarks - [`402d564`](https://github.com/JakeStanger/mpd-discord-rpc/commit/402d564ea221c8899b7f8e37d97080766647bc2c) refactor: remove redundant code ### 📊 Changes **4 files changed** (+52 additions, -43 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+5 -1) 📝 `Cargo.toml` (+2 -1) 📝 `README.md` (+1 -1) 📝 `src/main.rs` (+44 -40) </details> ### 📄 Description Static typed config file, no need for dumb hard-coded string. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
JakeStanger 2026-05-23 01:58:28 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/mpd-discord-rpc#1117
No description provided.