(line: &str, field: &str)
| 1558 | } |
| 1559 | |
| 1560 | fn parse_u64_field(line: &str, field: &str) -> Option<u64> { |
| 1561 | let rest = line.strip_prefix(&format!("{field}: "))?; |
| 1562 | rest.trim_end_matches(',').trim().parse().ok() |
| 1563 | } |
| 1564 | |
| 1565 | fn parse_tags_field(line: &str) -> Option<Vec<String>> { |
| 1566 | let rest = line.strip_prefix("tags: ")?; |
no test coverage detected