Add an owned string entry for CustomError.

This commit is contained in:
Tom Alexander
2023-10-17 09:27:15 -04:00
parent acc29e7977
commit 8417b5fc9d
2 changed files with 2 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ pub(crate) type Res<T, U> = IResult<T, U, CustomError<T>>;
#[derive(Debug)]
pub enum CustomError<I> {
Text(String),
MyError(MyError<&'static str>),
Nom(I, ErrorKind),
IO(std::io::Error),