A small service assembles a text summary panel from a set of records. It reads the header from a stream, then appends lines to the final output and increments the counter of successful builds only after saving the result.
build_panel takes &Store and returns Result<String, PanelError>.read_header, the lines via iter_lines.published counter.src/lib.rs.header: None
lines: ["a"]
header: Some("H")
lines: [Ok("a"), Err("boom"), Ok("c")]
build_panel returns a header read error.build_panel returns a line read error and does not publish a partial result.published by exactly 1.cargo test as the main verification modeUse line comments to explain the problem, its impact, the fix and how to test it.