The first line of a possibly multi-line string, for bounded output.
(s: &str)
| 270 | |
| 271 | /// The first line of a possibly multi-line string, for bounded output. |
| 272 | fn first_line(s: &str) -> &str { |
| 273 | s.lines().next().unwrap_or(s) |
| 274 | } |
| 275 | |
| 276 | // ── Attested export skin ──────────────────────────────────────────────────── |
| 277 |