mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #746] [MERGED] Fix warnings #1056
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#1056
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/librespot-org/librespot/pull/746
Author: @Johannesd3
Created: 5/13/2021
Status: ✅ Merged
Merged: 5/13/2021
Merged by: @Johannesd3
Base:
dev← Head:fix-warnings📝 Commits (1)
2689df5Fix warnings📊 Changes
8 files changed (+14 additions, -11 deletions)
View changed files
📝
connect/src/spirc.rs(+1 -1)📝
core/src/connection/handshake.rs(+1 -1)📝
core/src/connection/mod.rs(+2 -2)📝
core/src/mercury/mod.rs(+4 -3)📝
core/src/spotify_id.rs(+2 -0)📝
examples/playlist_tracks.rs(+0 -1)📝
metadata/src/lib.rs(+2 -1)📝
playback/src/player.rs(+2 -2)📄 Description
Fixes the protobuf deprecation warnings (closes #723), and fixes some new clippy warnings.
I disabled the
wrong_self_conventionlint. There are two possible fixes: Rename some functions ofSpotifyIdandFileIdor remove theCopytrait for those structs.I would tend to prefer the latter, as they're quite big. 17 bytes and 20 bytes are 3 registers on 64-bit machines and requiring explicit clones wouldn't be that bad. But that's not in the scope of this little PR.
I will merge it right away if the tests pass, @sashahilton00
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.