Skip to content

Commit

Permalink
Derive clone for postgresql arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
remysaissy committed Jan 16, 2025
1 parent f6d2fa3 commit 1ebc9ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlx-postgres/src/arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use sqlx_core::error::BoxDynError;
// that has a patch, we then apply the patch which should write to &mut Vec<u8>,
// backtrack and update the prefixed-len, then write until the next patch offset

#[derive(Default)]
#[derive(Default, Debug, Clone)]
pub struct PgArgumentBuffer {
buffer: Vec<u8>,

Expand Down Expand Up @@ -59,7 +59,7 @@ struct Patch {
}

/// Implementation of [`Arguments`] for PostgreSQL.
#[derive(Default)]
#[derive(Default, Debug, Clone)]
pub struct PgArguments {
// Types of each bind parameter
pub(crate) types: Vec<PgTypeInfo>,
Expand Down

0 comments on commit 1ebc9ec

Please sign in to comment.