Skip to content

Commit f9c2d5c

Browse files
authored
Merge pull request #1152 from levkk/levkk-add-clone-to-row
Derive Clone for Row
2 parents 0bd8b2b + 84994da commit f9c2d5c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

postgres-protocol/src/message/backend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ impl CopyOutResponseBody {
524524
}
525525
}
526526

527-
#[derive(Debug)]
527+
#[derive(Debug, Clone)]
528528
pub struct DataRowBody {
529529
storage: Bytes,
530530
len: u16,

tokio-postgres/src/row.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ where
9595
}
9696

9797
/// A row of data returned from the database by a query.
98+
#[derive(Clone)]
9899
pub struct Row {
99100
statement: Statement,
100101
body: DataRowBody,

0 commit comments

Comments
 (0)