Skip to content

tokio-postgres 0.7.8 DataRowBody doesn't implement std::fmt::Debug #1012

Closed
@ldanilek

Description

@ldanilek

i'm upgrading a project from tokio-postgres 0.7.0 to 0.7.8 (with features = ["with-serde_json-1"]), and i get this error on the new version:

error[E0277]: `DataRowBody` doesn't implement `std::fmt::Debug`
   --> /Users/lee/.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`

I would guess this is because tokio-postgres/Cargo.toml contains postgres-protocol = { version = "0.6.4" while the latest version of postgres-protocol is 0.6.5.

I resolved the problem by calling cargo generate-lockfile which updates the Cargo.lock file to use postgres-protocol at 0.6.5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions