Clean up.
This commit is contained in:
parent
20c4a0f8f7
commit
f59f153ee7
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user