Skip to content

Commit 44202ad

Browse files
authored
Merge pull request sfackler#967 from xxchan/xxchan/missing-guan
derive Debug for SimpleQueryMessage
2 parents cb82025 + be90d0e commit 44202ad

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

postgres-protocol/src/message/backend.rs

+1
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ impl CopyOutResponseBody {
524524
}
525525
}
526526

527+
#[derive(Debug)]
527528
pub struct DataRowBody {
528529
storage: Bytes,
529530
len: u16,

tokio-postgres/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ pub enum AsyncMessage {
239239
}
240240

241241
/// Message returned by the `SimpleQuery` stream.
242+
#[derive(Debug)]
242243
#[non_exhaustive]
243244
pub enum SimpleQueryMessage {
244245
/// A row of data.

tokio-postgres/src/row.rs

+1
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ impl AsName for SimpleColumn {
196196
}
197197

198198
/// A row of data returned from the database by a simple query.
199+
#[derive(Debug)]
199200
pub struct SimpleQueryRow {
200201
columns: Arc<[SimpleColumn]>,
201202
body: DataRowBody,

tokio-postgres/src/simple_query.rs

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use std::sync::Arc;
1515
use std::task::{Context, Poll};
1616

1717
/// Information about a column of a single query row.
18+
#[derive(Debug)]
1819
pub struct SimpleColumn {
1920
name: String,
2021
}

0 commit comments

Comments
 (0)