Remove boxed error from CustomError.

This commit is contained in:
Tom Alexander 2023-10-17 11:40:11 -04:00
parent f65d0bb82d
commit 05c64f53b1
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -10,7 +10,6 @@ pub enum CustomError {
Text(String),
Static(&'static str),
IO(std::io::Error),
BoxedError(Box<dyn std::error::Error>),
Parser(ErrorKind),
}
@ -36,9 +35,3 @@ impl From<&'static str> for CustomError {
CustomError::Static(value)
}
}
impl From<Box<dyn std::error::Error>> for CustomError {
fn from(value: Box<dyn std::error::Error>) -> Self {
CustomError::BoxedError(value)
}
}