From a68957b21f7d1043cde350d3262a9abcce628909 Mon Sep 17 00:00:00 2001 From: 05storm26 <05storm26@users.noreply.github.com> Date: Fri, 15 Apr 2022 00:07:29 +0200 Subject: [PATCH] Make all ConnectOptions clonable (#1612) --- sqlx-core/src/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlx-core/src/connection.rs b/sqlx-core/src/connection.rs index 402a198c9e..4fb103a2ee 100644 --- a/sqlx-core/src/connection.rs +++ b/sqlx-core/src/connection.rs @@ -152,7 +152,7 @@ impl LogSettings { } } -pub trait ConnectOptions: 'static + Send + Sync + FromStr + Debug { +pub trait ConnectOptions: 'static + Send + Sync + FromStr + Debug + Clone { type Connection: Connection + ?Sized; /// Establish a new database connection with the options specified by `self`.