Validates a SRCINFO file from a path or stdin. Wraps the [`parse`] function and allows to ensure that no errors occurred during parsing.
(file: Option<&PathBuf>, schema: Option<SourceInfoSchema>)
| 73 | /// |
| 74 | /// Wraps the [`parse`] function and allows to ensure that no errors occurred during parsing. |
| 75 | pub fn validate(file: Option<&PathBuf>, schema: Option<SourceInfoSchema>) -> Result<(), Error> { |
| 76 | let _result = parse(file, schema)?; |
| 77 | |
| 78 | Ok(()) |
| 79 | } |
| 80 | |
| 81 | /// Parses a SRCINFO file from a path or stdin and outputs it in the specified format on stdout. |
| 82 | /// |