[GH-ISSUE #10] no method name save found for struct ConfigLoader #2

Closed
opened 2026-05-22 22:04:57 +01:00 by JakeStanger · 0 comments
Owner

Originally created by @wonderbrian on GitHub (May 1, 2025).
Original GitHub issue: https://github.com/JakeStanger/universal-config-rs/issues/10

When running cargo install mpd-discord-rpc I get the following error

error[E0599]: no method named savefound for structConfigLoaderin the current scope --> /home/wonderbrian/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/mpd-discord-rpc-1.8.0/src/config.rs:79:18 | 78 | / loader 79 | | .save(&cfg, &universal_config::Format::Toml) | | -^^^^ method not found inConfigLoader<'_> | |_________________| |

It looks like this is coming from your universal-config repository. It's finding the latest version and compiling without issues:

Compiling tracing-subscriber v0.3.19 Compiling universal-config v0.5.1 Compiling mpd-utils v0.2.1 Compiling regex v1.11.1 Compiling mpd-discord-rpc v1.8.0

This is on a Raspberry Pi 4

`cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Originally created by @wonderbrian on GitHub (May 1, 2025). Original GitHub issue: https://github.com/JakeStanger/universal-config-rs/issues/10 When running `cargo install mpd-discord-rpc` I get the following error `error[E0599]: no method named `save` found for struct `ConfigLoader` in the current scope --> /home/wonderbrian/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/mpd-discord-rpc-1.8.0/src/config.rs:79:18 | 78 | / loader 79 | | .save(&cfg, &universal_config::Format::Toml) | | -^^^^ method not found in `ConfigLoader<'_>` | |_________________| |` It looks like this is coming from your universal-config repository. It's finding the latest version and compiling without issues: ` Compiling tracing-subscriber v0.3.19 Compiling universal-config v0.5.1 Compiling mpd-utils v0.2.1 Compiling regex v1.11.1 Compiling mpd-discord-rpc v1.8.0` This is on a Raspberry Pi 4 `cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
Sign in to join this conversation.
No labels
pull-request
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/universal-config-rs#2
No description provided.