Remove Error::description that has been soft-deprecated.

This commit is contained in:
KAMADA Ken'ichi 2020-01-26 19:20:12 +09:00
parent 904f4b577e
commit eec3791e10
1 changed files with 0 additions and 11 deletions

View File

@ -70,17 +70,6 @@ impl fmt::Display for Error {
}
impl error::Error for Error {
fn description(&self) -> &str {
match *self {
Error::InvalidFormat(msg) => msg,
Error::Io(ref err) => err.description(),
Error::NotFound(msg) => msg,
Error::BlankValue(msg) => msg,
Error::TooBig(msg) => msg,
Error::NotSupported(msg) => msg,
}
}
fn source(&self) -> Option<&(dyn error::Error + 'static)> {
match *self {
Error::InvalidFormat(_) => None,