mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-11-06 00:15:06 +00:00
fix(board): let clippy fold the pill-name guard
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user