pub fn write_results(
    path: &Path,
    format: OutputFormat,
    results: impl IntoIterator<Item = (Challenge, Vec<Calculation>)>
) -> Result<()>