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
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ pub(crate) type Res<T, U> = IResult<T, U, CustomError>;
#[derive(Debug)]
pub enum CustomError {
#[allow(dead_code)]
Text(String),
Static(&'static str),
IO(std::io::Error),
@ -14,7 +15,7 @@ pub enum 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)
}