mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-14 11:42:18 +08:00
Remove implementations of std::error::Error::description
This commit is contained in:
committed by
Thom Chiovoloni
parent
5a8108bd86
commit
38aea89809
@@ -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)
|
||||
|
Reference in New Issue
Block a user