First line of a (possibly multi-line) description, truncated for layout.
(s: &str)
| 374 | |
| 375 | /// First line of a (possibly multi-line) description, truncated for layout. |
| 376 | fn first_line(s: &str) -> String { |
| 377 | let line = s.lines().next().unwrap_or(""); |
| 378 | if line.len() > 90 { |
| 379 | format!("{}…", &line[..89]) |
| 380 | } else { |
| 381 | line.to_string() |
| 382 | } |
| 383 | } |
| 384 | |
| 385 | /// Best-effort categorisation by tool-name prefix. Matches how the codebase |
| 386 | /// already groups handlers (`graph`, `info`, `git`, `analysis`, `health`, |
no outgoing calls
no test coverage detected