From eec3791e1080f4343143e9025049b3ab47c10c3a Mon Sep 17 00:00:00 2001 From: KAMADA Ken'ichi Date: Sun, 26 Jan 2020 19:20:12 +0900 Subject: [PATCH] Remove Error::description that has been soft-deprecated. --- src/error.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/error.rs b/src/error.rs index 182a852..46dd8e8 100644 --- a/src/error.rs +++ b/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,