mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-26 03:08:57 +08:00
Address additional clippy warnings
This commit is contained in:
@@ -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),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user