Remove implementations of std::error::Error::description

This commit is contained in:
Thom Chiovoloni
2020-04-12 11:46:53 -07:00
committed by Thom Chiovoloni
parent 5a8108bd86
commit 38aea89809
2 changed files with 0 additions and 55 deletions

View File

@@ -62,19 +62,6 @@ impl fmt::Display for FromSqlError {
}
impl Error for FromSqlError {
#[allow(deprecated)]
fn description(&self) -> &str {
match *self {
FromSqlError::InvalidType => "invalid type",
FromSqlError::OutOfRange(_) => "value out of range",
#[cfg(feature = "i128_blob")]
FromSqlError::InvalidI128Size(_) => "unexpected blob size for 128bit value",
#[cfg(feature = "uuid")]
FromSqlError::InvalidUuidSize(_) => "unexpected blob size for UUID value",
FromSqlError::Other(ref err) => err.description(),
}
}
fn source(&self) -> Option<&(dyn Error + 'static)> {
if let FromSqlError::Other(ref err) = self {
Some(&**err)