Slug: opt-parse-01 · Paired reading: Chapter 2
Prompt
Config lines look like key=value where value is an i32.
fn parse_line(line: &str) -> Result<(String, i32), &'static str> —
split once on =, parse the value with ?-friendly conversion
(map_err to static str). Reject missing =.