(self)
| 1396 | |
| 1397 | impl PostgresErrorExt for postgres::Error { |
| 1398 | fn unwrap_db_error(self) -> DbError { |
| 1399 | match self.source().and_then(|e| e.downcast_ref::<DbError>()) { |
| 1400 | Some(e) => e.clone(), |
| 1401 | None => panic!("expected DbError, but got: {:?}", self), |
| 1402 | } |
| 1403 | } |
| 1404 | } |
| 1405 | |
| 1406 | impl<T, E> PostgresErrorExt for Result<T, E> |
no test coverage detected