Address additional clippy warnings

This commit is contained in:
John Gallagher
2016-03-29 14:18:56 -04:00
parent 2bd54578f5
commit 41fe698cec
5 changed files with 20 additions and 14 deletions

View File

@@ -140,6 +140,7 @@ impl error::Error for Error {
}
}
#[allow(match_same_arms)]
fn cause(&self) -> Option<&error::Error> {
match *self {
Error::SqliteFailure(ref err, _) => Some(err),
@@ -159,6 +160,7 @@ impl error::Error for Error {
#[cfg(feature = "functions")]
Error::InvalidFunctionParameterType => None,
#[cfg(feature = "functions")]
Error::UserFunctionError(ref err) => Some(&**err),
}