This commit is contained in:
Tom Alexander 2022-12-15 23:23:03 -05:00
parent ef60559428
commit c74b802038
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 0 additions and 8 deletions

View File

@ -23,10 +23,3 @@ impl<I> ParseError<I> for CustomError<I> {
other
}
}
// Err(nom::Err::Error(nom::error::Error::from_error_kind(input, nom::error::ErrorKind::Char)))
fn test_parser<'a>(i: &'a str) -> IResult<&'a str, &'a str, CustomError<&'a str>> {
Err(nom::Err::Error(CustomError::MyError(MyError(i))))?;
tag("sdjfisdfjisudfjuwiefweufefefjwef")(i)
}

View File

@ -28,7 +28,6 @@ use nom::IResult;
use super::error::CustomError;
pub type Res<T, U> = IResult<T, U, CustomError<T>>;
pub type ResOld<T, U> = IResult<T, U, VerboseError<T>>;
#[derive(Debug)]
pub enum TextElement<'a> {