From a67dcfc7207ced664ff22a4bdf28cb80eed9eac0 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 25 Oct 2026 21:40:14 +0000 Subject: [PATCH] pong: Fix clippy collapsible_match lint 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) Claude-Session: https://claude.ai/code/session_01KZi2GWVKe1e5Gu5J4oRFKC --- fl16-inputmodules/src/games/pong.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fl16-inputmodules/src/games/pong.rs b/fl16-inputmodules/src/games/pong.rs index c063386c..9fc4f38e 100644 --- a/fl16-inputmodules/src/games/pong.rs +++ b/fl16-inputmodules/src/games/pong.rs @@ -114,10 +114,8 @@ impl PongState { self.paddles.1 += 1; } } - GameControlArg::SecondRight => { - if self.paddles.1 >= 1 { - self.paddles.1 -= 1; - } + GameControlArg::SecondRight if self.paddles.1 >= 1 => { + self.paddles.1 -= 1; } _ => {} }