Reduce panic
This commit is contained in:
parent
76596da46a
commit
c8e2232875
@ -59,9 +59,9 @@ impl fmt::Debug for QueryResultRow {
|
||||
#[cfg(feature = "sqlx-mysql")]
|
||||
Self::SqlxMySql(row) => write!(f, "{:?}", row),
|
||||
#[cfg(feature = "sqlx-postgres")]
|
||||
Self::SqlxPostgres(_) => panic!("QueryResultRow::SqlxPostgres cannot be inspected"),
|
||||
Self::SqlxPostgres(_) => write!("QueryResultRow::SqlxPostgres cannot be inspected"),
|
||||
#[cfg(feature = "sqlx-sqlite")]
|
||||
Self::SqlxSqlite(_) => panic!("QueryResultRow::SqlxSqlite cannot be inspected"),
|
||||
Self::SqlxSqlite(_) => write!("QueryResultRow::SqlxSqlite cannot be inspected"),
|
||||
#[cfg(feature = "mock")]
|
||||
Self::Mock(row) => write!(f, "{:?}", row),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user