Skip to content

index: remove unreachable index type fallback - #117

Merged
Xuanwo merged 1 commit into
mainfrom
xuanwo/repair-unreachable-index-arm
Nov 22, 2026
Merged

Xuanwo merged 1 commit into
mainfrom
xuanwo/repair-unreachable-index-arm

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 22, 2026

Copy link
Copy Markdown
Member

build_index_from_options matches all nine LanceDBIndexType variants, so its _ arm cannot be reached and strict Clippy rejects it. Removing the arm keeps the match exhaustive; LanceDBIndexType::from_c_int still rejects raw c_int values outside the enum at the public FFI entry.

The failure was observed on base 1de9c4e in #115's Build shared on ubuntu-latest job: build and C17 checks passed, then cargo clippy --all-targets -- -D warnings reported unreachable_patterns at src/index.rs:386. The arm came from #103 (c970c99).

Validation:

  • cargo clippy --lib -- -D warnings on base 1de9c4e reproduces the reported error at src/index.rs:386.
  • cargo clippy --all-targets -- -D warnings on this head passes.
  • cargo fmt --check and git diff --check pass.

No test, workflow, lint configuration, or public API changes.

@Xuanwo
Xuanwo merged commit 5e3cef3 into main Nov 22, 2026
10 checks passed
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