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