Skip to content

chore(lint): enable clippy::unnested_or_patterns#174

Open
tupe12334 wants to merge 1 commit into
mainfrom
fix/issue-167-unnested-or-patterns
Open

chore(lint): enable clippy::unnested_or_patterns#174
tupe12334 wants to merge 1 commit into
mainfrom
fix/issue-167-unnested-or-patterns

Conversation

@tupe12334

Copy link
Copy Markdown
Member

What

Promotes the clippy::unnested_or_patterns pedantic lint to deny in core/Cargo.toml's [lints.clippy] table, continuing the repo's incremental clippy ratchet.

Why

The lint collapses or-patterns that share an outer constructor (e.g. Some(1) | Some(2)Some(1 | 2)), reducing repetition and surfacing the real variation between arms.

Scope

The codebase has zero violations today, so enabling it is a clean, no-fix guard. cargo clippy --manifest-path core/Cargo.toml --all-targets --locked -- -D warnings and cargo test both pass.

Closes #167


🤖 Generated with Claude Code

This pull request was opened by the "Open issues → fix PRs (owned repos + my orgs)" routine of moadim.

Promote clippy::unnested_or_patterns to deny in core/Cargo.toml, continuing
the repo's incremental clippy ratchet. The codebase has zero violations, so
this is a clean no-fix guard.

Closes #167

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

Enable clippy::unnested_or_patterns lint

1 participant