Skip to content

Commit

Permalink
Make all ConnectOptions clonable
Browse files Browse the repository at this point in the history
  • Loading branch information
05storm26 committed Jan 6, 2022
1 parent d901694 commit e4b2eae
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/any/options.rs
Expand Up @@ -26,7 +26,7 @@ use crate::mssql::MssqlConnectOptions;
/// postgres://postgres:password@localhost/database
/// mysql://root:password@localhost/database
/// ```
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct AnyConnectOptions(pub(crate) AnyConnectOptionsKind);

impl AnyConnectOptions {
Expand Down
2 changes: 1 addition & 1 deletion sqlx-core/src/connection.rs
Expand Up @@ -152,7 +152,7 @@ impl LogSettings {
}
}

pub trait ConnectOptions: 'static + Send + Sync + FromStr<Err = Error> + Debug {
pub trait ConnectOptions: 'static + Send + Sync + FromStr<Err = Error> + Debug + Clone {
type Connection: Connection + ?Sized;

/// Establish a new database connection with the options specified by `self`.
Expand Down

0 comments on commit e4b2eae

Please sign in to comment.