sfackler / rust-postgres

Native PostgreSQL driver for the Rust programming language
Apache License 2.0
3.49k stars 443 forks source link

DataRowBody doesn't implement std::fmt::Debug #1021

Closed godofdream closed 1 year ago

godofdream commented 1 year ago

Using tokio-postgres 0.7.8 I get an error in row.rs:

#[derive(Debug)]
    |          ----- in this derive macro expansion
...
202 |     body: DataRowBody,
    |     ^^^^^^^^^^^^^^^^^ `DataRowBody` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
    |
    = help: the trait `std::fmt::Debug` is not implemented for `DataRowBody`
    = note: this error originates in the derive macro `Debug`

I assume a derive(Debug) would be sufficient

sfackler commented 1 year ago

https://github.com/sfackler/rust-postgres/issues/1013