Skip to content

fix(clippy): satisfy Rust 1.95 unnecessary_sort_by + explicit_counter_loop#29

Merged
devwhodevs merged 1 commit intomainfrom
fix/clippy-rust-1.95
Apr 21, 2026
Merged

fix(clippy): satisfy Rust 1.95 unnecessary_sort_by + explicit_counter_loop#29
devwhodevs merged 1 commit intomainfrom
fix/clippy-rust-1.95

Conversation

@devwhodevs
Copy link
Copy Markdown
Owner

Summary

  • Rust 1.95 (stable 2026-04-14) promoted clippy::unnecessary_sort_by and clippy::explicit_counter_loop to deny-by-default via -D warnings, breaking CI on PR fix(temporal): prevent panic on multi-byte UTF-8 queries #24 (macOS+Ubuntu check jobs).
  • Replace sort_by(|a, b| b.x.cmp(&a.x)) with sort_by_key(|b| Reverse(b.x)) in identity.rs (2x) and links.rs (2x).
  • Drop the manual next_vid += 1 pattern in indexer.rs, writer.rs (3x), and llm.rs — derive the vector id / sequence position from the enumerate() index instead.

Once merged, PR #24 should pass CI on re-run (merge commit rebased onto fixed base).

Test plan

  • cargo clippy -- -D warnings clean on rustc 1.95.0
  • cargo fmt --check clean
  • cargo test --lib — 458 passed, 0 failed

…_loop

Rust 1.95 promoted two clippy lints to deny-by-default in CI's -D warnings
build. Replace sort_by with sort_by_key(|b| Reverse(...)) and derive vector
IDs from the enumerate() index instead of a manual counter variable.
@devwhodevs devwhodevs merged commit 3757895 into main Apr 21, 2026
3 checks passed
@devwhodevs devwhodevs deleted the fix/clippy-rust-1.95 branch April 21, 2026 18:22
devwhodevs added a commit that referenced this pull request Apr 21, 2026
Patch release bundling three post-v1.6.0 fixes:
- UTF-8 panic in temporal search (#24, thanks @majkelooo)
- Rust 1.95 clippy CI breakage (#29)
- rmcp 1.4 -> 1.5 for MCP protocol 2025-11-25, unblocks Claude Desktop
  Cowork / Code-in-Desktop tool surfacing (#20, #30)
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