Clean up.

This commit is contained in:
Tom Alexander 2023-10-17 10:39:21 -04:00
parent 20c4a0f8f7
commit f59f153ee7
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -6,6 +6,7 @@ pub(crate) type Res<T, U> = IResult<T, U, CustomError>;
#[derive(Debug)] #[derive(Debug)]
pub enum CustomError { pub enum CustomError {
#[allow(dead_code)]
Text(String), Text(String),
Static(&'static str), Static(&'static str),
IO(std::io::Error), IO(std::io::Error),
@ -14,7 +15,7 @@ pub enum CustomError {
} }
impl<I: std::fmt::Debug> ParseError<I> for CustomError { impl<I: std::fmt::Debug> ParseError<I> for CustomError {
fn from_error_kind(input: I, kind: ErrorKind) -> Self { fn from_error_kind(_input: I, kind: ErrorKind) -> Self {
CustomError::Parser(kind) CustomError::Parser(kind)
} }