diff --git a/src/parser/error.rs b/src/parser/error.rs index 6598f40..c45ba14 100644 --- a/src/parser/error.rs +++ b/src/parser/error.rs @@ -23,10 +23,3 @@ impl ParseError for CustomError { 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) -} diff --git a/src/parser/text.rs b/src/parser/text.rs index 116fc9c..69da8ac 100644 --- a/src/parser/text.rs +++ b/src/parser/text.rs @@ -28,7 +28,6 @@ use nom::IResult; use super::error::CustomError; pub type Res = IResult>; -pub type ResOld = IResult>; #[derive(Debug)] pub enum TextElement<'a> {