Fix handful of clippy warnings.

This commit is contained in:
John Gallagher
2017-11-17 11:37:23 -07:00
parent 5f180c5a95
commit 4bfbb5f1fe
6 changed files with 24 additions and 9 deletions

View File

@@ -166,7 +166,6 @@ impl error::Error for Error {
fn cause(&self) -> Option<&error::Error> {
match *self {
Error::SqliteFailure(ref err, _) => Some(err),
Error::FromSqlConversionFailure(_, _, ref err) => Some(&**err),
Error::Utf8Error(ref err) => Some(err),
Error::NulError(ref err) => Some(err),
@@ -186,6 +185,8 @@ impl error::Error for Error {
#[cfg(feature = "functions")]
Error::UserFunctionError(ref err) => Some(&**err),
Error::FromSqlConversionFailure(_, _, ref err) |
Error::ToSqlConversionFailure(ref err) => Some(&**err),
}
}