Skip to content

chore(lint): dedupe tree-sitter cfg gate; collapse nested else-if - #534

Merged
ajianaz merged 1 commit into
developfrom
chore/clippy-strict-cleanups
Aug 27, 2026
Merged

chore(lint): dedupe tree-sitter cfg gate; collapse nested else-if#534
ajianaz merged 1 commit into
developfrom
chore/clippy-strict-cleanups

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Fixes #532

What

Why

#532 reported two pre-existing cargo clippy --all-targets -- -D warnings findings that block contributors on stricter toolchains than CI's. Verification on rustc 1.97.1 showed both already lint-clean (see issue comment), so this PR applies the cleanups defensively as suggested in the issue — making the source shape match the lint bar on every toolchain, not just the current one.

Testing

  • cargo fmt --all -- --check — clean
  • cargo clippy --all-targets --features tree-sitter -- -D warnings — 0 warnings
  • cargo clippy --all-targets -- -D warnings — clean
  • cargo test --features tree-sitter — 926 passed (904 unit + 16 CLI + 6 config), 0 failed

No behavior change: cfg removal only affects a file already feature-gated at its mod declaration; the else-if collapse is the standard clippy-validated transform.

All commits signed-off (DCO).

…brain output

Signed-off-by: Anaz S. Aji <aji.anaz@gmail.com>
@ajianaz
ajianaz merged commit b116df1 into develop Aug 27, 2026
15 checks passed
@ajianaz
ajianaz deleted the chore/clippy-strict-cleanups branch August 27, 2026 14:02
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.

clippy: two pre-existing -D warnings failures (block local validation with strict clippy)

1 participant