Continue removing MyError.

This commit is contained in:
Tom Alexander
2023-10-17 10:35:33 -04:00
parent e776a051ad
commit 20c4a0f8f7
13 changed files with 29 additions and 37 deletions

View File

@@ -10,11 +10,12 @@ pub enum CustomError {
Static(&'static str),
IO(std::io::Error),
BoxedError(Box<dyn std::error::Error>),
Parser(ErrorKind),
}
impl<I: std::fmt::Debug> ParseError<I> for CustomError {
fn from_error_kind(input: I, kind: ErrorKind) -> Self {
CustomError::Text(format!("{:?} {:?}", kind, input))
CustomError::Parser(kind)
}
fn append(_input: I, _kind: ErrorKind, /*mut*/ other: Self) -> Self {