Fix/suppress warning 'deprecated'

This commit is contained in:
gwenn 2019-02-02 11:10:58 +01:00
parent 20fed1956e
commit f695f185c2

View File

@ -60,6 +60,7 @@ impl Error for FromSqlError {
}
#[allow(clippy::match_same_arms)]
#[allow(deprecated)]
fn cause(&self) -> Option<&dyn Error> {
match *self {
FromSqlError::Other(ref err) => err.cause(),