Add a warning.
(mut self, warning: impl Into<String>)
| 617 | |
| 618 | /// Add a warning. |
| 619 | pub fn with_warning(mut self, warning: impl Into<String>) -> Self { |
| 620 | self.warnings.push(warning.into()); |
| 621 | self |
| 622 | } |
| 623 | |
| 624 | /// Check if there were warnings. |
| 625 | pub fn has_warnings(&self) -> bool { |