From a92beded45eb2872591d74474611a7a4ac70dc36 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Tue, 29 Sep 2026 09:13:11 +0800 Subject: [PATCH] fix(board): let clippy fold the pill-name guard --- src/ui/board/composer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/board/composer.rs b/src/ui/board/composer.rs index de32cef3..2e38921f 100644 --- a/src/ui/board/composer.rs +++ b/src/ui/board/composer.rs @@ -451,7 +451,7 @@ impl Tty7App { fn short_name(agent: CLIAgent) -> &'static str { let name = agent.display_name(); match name.split_once(' ') { - Some((first, rest)) if matches!(rest, "Code" | "CLI" | "Agent") => first, + Some((first, "Code" | "CLI" | "Agent")) => first, _ => name, } }