Cargo emits messages of many levels — "warning" and "error" produce diagnostics; "note", "help", "failure-note" are advisory and would double-count if we surfaced them.
(level: &str)
| 128 | /// diagnostics; "note", "help", "failure-note" are advisory and would |
| 129 | /// double-count if we surfaced them. |
| 130 | fn is_diagnostic_level(level: &str) -> bool { |
| 131 | matches!(level, "error" | "warning") |
| 132 | } |
| 133 | |
| 134 | #[derive(Debug, Deserialize)] |
| 135 | struct CargoLine { |