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)]
|
#[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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user