From 2d5ba5e02b39798a15a817d9c7558b9d1e669049 Mon Sep 17 00:00:00 2001 From: Adam Maroti Date: Thu, 6 Jan 2022 09:43:46 +0100 Subject: [PATCH] Make all ConnectOptions clonable --- 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`.