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 Feb 19, 2022
1 parent eaf41fd commit 12f2cbc
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 12f2cbc

Please sign in to comment.