Make all ConnectOptions clonable (#1612)

This commit is contained in:
05storm26 2022-04-15 00:07:29 +02:00 committed by GitHub
parent f328cc15d8
commit a68957b21f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`.