| 50 | |
| 51 | #[derive(Debug, thiserror::Error)] |
| 52 | pub enum Error<'a> { |
| 53 | #[error(transparent)] |
| 54 | Stdio(#[from] std::io::Error), |
| 55 | #[error("parse error {1}, input {0}")] |
| 56 | Winnow(Partial<&'a str>, ErrorKind), |
| 57 | } |
| 58 | |
| 59 | impl<'a> ParserError<Partial<&'a str>> for Error<'a> { |
| 60 | fn from_error_kind(input: &Partial<&'a str>, kind: ErrorKind) -> Self { |
no outgoing calls
no test coverage detected