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` #1022

Closed ccleve closed 1 year ago

ccleve commented 1 year ago

When I try to compile a project that depends on tokio-postgres, I get:

error[E0277]: `DataRowBody` doesn't implement `std::fmt::Debug`
   --> /Users/ccleve/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-postgres-0.7.8/src/row.rs:202:5
    |
199 | #[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` (in Nightly builds, run with -Z macro-backtrace for more info)

The issue might be that tokio-postgres has a direct dependency on postgres-protocol 0.6.5, and it also has a direct dependency on postgres-types 0.2.4, which in turn has a transitive dependency on postgres-protocol 0.6.4.

sfackler commented 1 year ago

1013