Commit 63685d0 1 parent d901694 commit 63685d0 Copy full SHA for 63685d0
File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ use crate::mssql::MssqlConnectOptions;
26
26
/// postgres://postgres:password@localhost/database
27
27
/// mysql://root:password@localhost/database
28
28
/// ```
29
- #[ derive( Debug ) ]
29
+ #[ derive( Debug , Clone ) ]
30
30
pub struct AnyConnectOptions ( pub ( crate ) AnyConnectOptionsKind ) ;
31
31
32
32
impl AnyConnectOptions {
@@ -47,7 +47,7 @@ impl AnyConnectOptions {
47
47
}
48
48
}
49
49
50
- #[ derive( Debug ) ]
50
+ #[ derive( Debug , Clone ) ]
51
51
pub ( crate ) enum AnyConnectOptionsKind {
52
52
#[ cfg( feature = "postgres" ) ]
53
53
Postgres ( PgConnectOptions ) ,
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ impl LogSettings {
152
152
}
153
153
}
154
154
155
- pub trait ConnectOptions : ' static + Send + Sync + FromStr < Err = Error > + Debug {
155
+ pub trait ConnectOptions : ' static + Send + Sync + FromStr < Err = Error > + Debug + Clone {
156
156
type Connection : Connection + ?Sized ;
157
157
158
158
/// Establish a new database connection with the options specified by `self`.
You can’t perform that action at this time.
0 commit comments