Skip to content

pong: Fix clippy collapsible_match lint - #149

Closed
kingof9x wants to merge 1 commit into
FrameworkComputer:mainfrom
kingof9x:upstream/1-lint-fix
Closed

kingof9x wants to merge 1 commit into
FrameworkComputer:mainfrom
kingof9x:upstream/1-lint-fix

Conversation

@kingof9x

@kingof9x kingof9x commented Nov 2, 2026

Copy link
Copy Markdown

The linting job fails on main with the current stable Rust, because clippy's collapsible_match lint now flags the nested if in pong.rs. This moves the condition into the match arm as a guard. No change in behaviour.

Newer clippy (Rust 1.99) flags the nested if in the SecondRight arm. Moving the condition into a match guard behaves the same, because the catch-all arm below also does nothing.

Newer clippy (Rust 1.99) flags the nested if in the SecondRight arm.
Moving the condition into a match guard behaves the same, because
the catch-all arm below also does nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KZi2GWVKe1e5Gu5J4oRFKC
@kingof9x kingof9x closed this Nov 2, 2026
@kingof9x
kingof9x deleted the upstream/1-lint-fix branch November 2, 2026 05:52
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.

2 participants