The first line of a possibly multi-line string, for bounded output.
(s: &str)
| 156 | |
| 157 | /// The first line of a possibly multi-line string, for bounded output. |
| 158 | fn first_line(s: &str) -> &str { |
| 159 | s.lines().next().unwrap_or(s) |
| 160 | } |
| 161 | |
| 162 | // ── Attested export skin ──────────────────────────────────────────────────── |
| 163 |