From ba2ee6cf7fba28c0e38feeb0276313e08a94b230 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 13 Jun 2026 19:41:17 +0000 Subject: [PATCH] fix(tui): collapse Right key match arm into a guard Resolves clippy::collapsible_match by moving the !is_generating && cursor bounds check into the KeyCode::Right match guard. --- crates/cli/src/cli/tui.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/cli/src/cli/tui.rs b/crates/cli/src/cli/tui.rs index 95164f8..67d5d42 100644 --- a/crates/cli/src/cli/tui.rs +++ b/crates/cli/src/cli/tui.rs @@ -974,11 +974,11 @@ async fn run_app( app.cursor_position -= 1; } } - KeyCode::Right => { - if !app.is_generating && app.cursor_position < app.input.chars().count() - { - app.cursor_position += 1; - } + KeyCode::Right + if !app.is_generating + && app.cursor_position < app.input.chars().count() => + { + app.cursor_position += 1; } _ => {} }