mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1570] E0308 error in librespot-discovery-0.7.1/src/lib.rs:409 during "cargo install librespot" #713
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#713
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 @abecrabt on GitHub (Sep 5, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1570
Look for similar bugs
Please check if there's already an issue for your problem.
If you've only a "me too" comment to make, consider if a 👍 reaction
will suffice.
Description
A clear and concise description of what the problem is.
"cargo install librespot" - tried on raspberry pi and on my laptop.
librespot-discovery-0.7.1 type clash calling responder in libmdns-0.9.2, see below
I'm sorry, I'm not a rust/cargo or librespot person at all, just a user. I don't think I'm doing anything silly, & I've installed in the past, even the quite recent past. This seems to be something new. Thanks so much for any help.
Compiling librespot-discovery v0.7.1
error[E0308]: arguments to this method are incorrect
--> /home/abe/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/librespot-discovery-0.7.1/src/lib.rs:409:33
|
409 | let svc = responder.register(
| ^^^^^^^^
410 | DNS_SD_SERVICE_NAME.to_owned(),
| ------------------------------ expected
&str, foundString411 | name.into_owned(),
| ----------------- expected
&str, foundString|
note: method defined here
--> /home/abe/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libmdns-0.9.2/src/lib.rs:292:12
|
292 | pub fn register(&self, svc_type: &str, svc_name: &str, port: u16, txt: &[&str]) -> Service {
| ^^^^^^^^
help: try removing the method call
|
410 - DNS_SD_SERVICE_NAME.to_owned(),
410 + DNS_SD_SERVICE_NAME,
|
help: consider borrowing here
|
411 | &name.into_owned(),
| +
For more information about this error, try
rustc --explain E0308.error: could not compile
librespot-discovery(lib) due to 1 previous errorwarning: build failed, waiting for other jobs to finish...
error: failed to compile
librespot v0.7.1, intermediate artifacts can be found at/tmp/cargo-installao2qEI.Version
What version(s) of librespot does this problem exist in?
How to reproduce
Steps to reproduce the behavior in librespot e.g.
librespotwith '...'Log
librespotwith--verbose).Host (what you are running
librespoton):Additional context
Add any other context about the problem here. If your issue is related to sound playback, at a minimum specify the type and make of your output device.
@kingosticks commented on GitHub (Sep 5, 2025):
Duplicate of #1569