fix(board): let clippy fold the pill-name guard

This commit is contained in:
l0ng-ai
2026-09-29 09:13:11 +08:00
parent bc35088a76
commit a92beded45
+1 -1
View File
@@ -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,
}
}