Checks if errors have been appended and consumes `self`. # Errors Returns an error if one or more errors have been appended.
(self)
| 45 | /// |
| 46 | /// Returns an error if one or more errors have been appended. |
| 47 | pub fn check(self) -> Result<(), crate::Error> { |
| 48 | if !self.errors.is_empty() { |
| 49 | return Err(crate::Error::PathValidation(self)); |
| 50 | } |
| 51 | |
| 52 | Ok(()) |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | impl Display for PathValidationErrors { |
no test coverage detected