Skip to content
This repository was archived by the owner on Jun 11, 2026. It is now read-only.

Fix clippy lints for Rust 1.96 - #116

Open
qdrant-cloud-bot wants to merge 1 commit into
masterfrom
fix/clippy-1.96
Open

Fix clippy lints for Rust 1.96#116
qdrant-cloud-bot wants to merge 1 commit into
masterfrom
fix/clippy-1.96

Conversation

@qdrant-cloud-bot

Copy link
Copy Markdown

Summary

CI is currently red (e.g. on #115) because newer clippy (1.96.0) introduced lints that, combined with -D warnings, fail the build. These are unrelated to the dependabot bump but block all PRs.

This PR fixes the lint errors in src/lib.rs:

  • unnecessary_sort_by: replace sort_by(|a, b| a.x.cmp(&b.x)) with sort_by_key(|a| a.x) (2 occurrences)
  • manual_pop_if: replace manual last() + pop().unwrap() with Vec::pop_if

Test plan

  • cargo clippy --all-targets passes locally with no warnings

Made with Cursor

Resolve clippy errors that break CI on newer toolchains:
- use sort_by_key instead of sort_by with cmp
- use Vec::pop_if instead of manual last()/pop()

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant