(output: &mut String, indent: usize, label: &str, values: &[String])
| 528 | } |
| 529 | |
| 530 | fn write_string_list(output: &mut String, indent: usize, label: &str, values: &[String]) { |
| 531 | writeln!(output, "{}{}:", spaces(indent), label).unwrap(); |
| 532 | if values.is_empty() { |
| 533 | writeln!(output, "{}none", spaces(indent + 2)).unwrap(); |
| 534 | } else { |
| 535 | for value in values { |
| 536 | writeln!(output, "{}- {value}", spaces(indent + 2)).unwrap(); |
| 537 | } |
| 538 | } |
| 539 | } |
| 540 | |
| 541 | fn write_key_value(output: &mut String, indent: usize, key: &str, value: &str) { |
| 542 | writeln!(output, "{}{key}: {value}", spaces(indent)).unwrap(); |
no test coverage detected