Remove Error::description that has been soft-deprecated.
This commit is contained in:
parent
904f4b577e
commit
eec3791e10
11
src/error.rs
11
src/error.rs
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue