mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +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…
Reference in New Issue
Block a user