mirror of
https://github.com/isar/rusqlite.git
synced 2025-01-20 12:00:51 +08:00
FromSqlError::cause() returns other error's cause directly (possibly None).
This commit is contained in:
parent
4181441d63
commit
2e140d0684
@ -33,7 +33,7 @@ impl Error for FromSqlError {
|
||||
fn cause(&self) -> Option<&Error> {
|
||||
match *self {
|
||||
FromSqlError::InvalidType => None,
|
||||
FromSqlError::Other(ref err) => Some(&**err),
|
||||
FromSqlError::Other(ref err) => err.cause(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user