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 2d5ba5e
Showing 1 changed file with 1 addition and 1 deletion.
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 2d5ba5e

Please sign in to comment.