mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #1655] [MERGED] Remove redundant closures #1478
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#1478
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/1655
Author: @xtqqczze
Created: 11/30/2025
Status: ✅ Merged
Merged: 12/24/2025
Merged by: @photovoltex
Base:
dev← Head:clippy/redundant_closure_for_method_calls📝 Commits (7)
98c5da4fix: clippy::redundant_closure_for_method_calls46a5606fixup! fix: clippy::redundant_closure_for_method_calls987def6use Into::into530aba8use Instant::elapsedd2c4ba5cargo fmt3bb6618enable clippy lint16696a6add lints to all packages📊 Changes
22 files changed (+52 additions, -24 deletions)
View changed files
📝
Cargo.toml(+6 -0)📝
audio/Cargo.toml(+3 -0)📝
audio/src/fetch/receive.rs(+5 -1)📝
connect/Cargo.toml(+3 -0)📝
connect/src/context_resolver.rs(+1 -1)📝
core/Cargo.toml(+3 -0)📝
core/src/http_client.rs(+1 -4)📝
core/src/spclient.rs(+3 -3)📝
discovery/Cargo.toml(+3 -0)📝
metadata/Cargo.toml(+3 -0)📝
metadata/src/image.rs(+1 -1)📝
metadata/src/lyrics.rs(+1 -1)📝
metadata/src/playlist/attribute.rs(+2 -2)📝
metadata/src/playlist/list.rs(+2 -2)📝
metadata/src/playlist/permission.rs(+1 -1)📝
metadata/src/restriction.rs(+2 -5)📝
oauth/Cargo.toml(+3 -0)📝
oauth/src/lib.rs(+1 -1)📝
playback/Cargo.toml(+3 -0)📝
playback/src/local_file.rs(+1 -1)...and 2 more files
📄 Description
Checks for closures which only invoke a method on the closure argument and can be replaced by referencing the method directly.
https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.