Rename Error::Custom to Error::CustomMessage

This commit is contained in:
Sebastian Schmidt 2019-03-23 15:29:50 +02:00
parent 16a79cd567
commit cba49f7bba
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ impl fmt::Display for Error {
ModulationError { dividend, divisor } => {
write!(f, "Error modulating {} % {}", dividend, divisor)
},
Custom(message) => write!(f, "Error: {}", message),
CustomMessage(message) => write!(f, "Error: {}", message),
}
}
}

View File

@ -155,7 +155,7 @@ pub enum Error {
},
/// A custom error explained by its message.
Custom(String),
CustomMessage(String),
}
impl Error {