Skip to content

Commit

Permalink
Derive Clone for Row
Browse files Browse the repository at this point in the history
  • Loading branch information
levkk committed Jul 6, 2024
1 parent 98f5a11 commit 84994da
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 84994da

Please sign in to comment.