Skip to content

Commit

Permalink
Merge pull request #1152 from levkk/levkk-add-clone-to-row
Browse files Browse the repository at this point in the history
Derive Clone for Row
  • Loading branch information
sfackler authored Jul 6, 2024
2 parents 0bd8b2b + 84994da commit f9c2d5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion postgres-protocol/src/message/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ impl CopyOutResponseBody {
}
}

#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct DataRowBody {
storage: Bytes,
len: u16,
Expand Down
1 change: 1 addition & 0 deletions tokio-postgres/src/row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ where
}

/// A row of data returned from the database by a query.
#[derive(Clone)]
pub struct Row {
statement: Statement,
body: DataRowBody,
Expand Down

0 comments on commit f9c2d5c

Please sign in to comment.