Returns `true` when the report contains at least one error diagnostic.
(&self)
| 138 | impl ConfigReport { |
| 139 | /// Returns `true` when the report contains at least one error diagnostic. |
| 140 | pub fn has_errors(&self) -> bool { |
| 141 | self.diagnostics |
| 142 | .iter() |
| 143 | .any(|diag| diag.level == DiagnosticLevel::Error) |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | /// One validation or compatibility diagnostic. |
no outgoing calls
no test coverage detected