minor: dead code

This commit is contained in:
Aleksey Kladov 2021-08-31 15:26:59 +03:00
parent 51b955ec8a
commit f1222e8085

View file

@ -277,8 +277,6 @@ pub mod buffer;
#[derive(Debug, PartialEq, Eq, Clone)]
pub enum ExpansionError {
IOError(String),
JsonError(String),
Unknown(String),
ExpansionError(String),
}
@ -286,8 +284,6 @@ pub enum ExpansionError {
impl fmt::Display for ExpansionError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
ExpansionError::IOError(e) => write!(f, "I/O error: {}", e),
ExpansionError::JsonError(e) => write!(f, "JSON decoding error: {}", e),
ExpansionError::Unknown(e) => e.fmt(f),
ExpansionError::ExpansionError(e) => write!(f, "proc macro returned error: {}", e),
}