Skip to content

[codex] Fix stable clippy sort lint#1711

Draft
patrik-sandin wants to merge 1 commit into
librespot-org:devfrom
patrik-sandin:fix/stable-clippy-sort-lint
Draft

[codex] Fix stable clippy sort lint#1711
patrik-sandin wants to merge 1 commit into
librespot-org:devfrom
patrik-sandin:fix/stable-clippy-sort-lint

Conversation

@patrik-sandin

Copy link
Copy Markdown

Summary

This isolates the stable clippy fix for metadata/src/audio/item.rs into its own PR.

The change replaces a sort_by call with sort_by_key(Reverse(...)) to satisfy clippy::unnecessary_sort_by on the stable toolchain without changing behavior.

Why

While validating #1708, stable clippy surfaced a repository-wide lint in metadata/src/audio/item.rs that was unrelated to the Avahi fix. Keeping this as a separate PR keeps the Avahi bugfix narrow and makes the lint cleanup easier to review.

Validation

  • cargo clippy -p librespot-metadata --lib -- -D warnings
  • cargo fmt --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant