Skip to content

Commit

Permalink
Derive clone for mysql and mssql arguments (#1736)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdeafbeef authored Mar 24, 2022
1 parent f539215 commit 9d76f7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sqlx-core/src/mssql/arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::mssql::io::MssqlBufMutExt;
use crate::mssql::protocol::rpc::StatusFlags;
use crate::types::Type;

#[derive(Default)]
#[derive(Default, Clone)]
pub struct MssqlArguments {
// next ordinal to be used when formatting a positional parameter name
pub(crate) ordinal: usize,
Expand Down
2 changes: 1 addition & 1 deletion sqlx-core/src/mysql/arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::mysql::{MySql, MySqlTypeInfo};
use crate::types::Type;

/// Implementation of [`Arguments`] for MySQL.
#[derive(Debug, Default)]
#[derive(Debug, Default, Clone)]
pub struct MySqlArguments {
pub(crate) values: Vec<u8>,
pub(crate) types: Vec<MySqlTypeInfo>,
Expand Down

0 comments on commit 9d76f7c

Please sign in to comment.