From 042b6458e7bc531a6e54cb7c46c91c62d5d4e92b Mon Sep 17 00:00:00 2001 From: Matthew Pomes Date: Tue, 30 Sep 2025 23:51:04 -0500 Subject: [PATCH] Update diesel-async to 0.6, and remove an unnecessary Sync bound --- contrib/db_pools/lib/Cargo.toml | 2 +- contrib/db_pools/lib/src/pool.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/db_pools/lib/Cargo.toml b/contrib/db_pools/lib/Cargo.toml index 2654139914..b71b249253 100644 --- a/contrib/db_pools/lib/Cargo.toml +++ b/contrib/db_pools/lib/Cargo.toml @@ -64,7 +64,7 @@ features = ["compat-3-0-0", "rustls-tls"] optional = true [dependencies.diesel-async] -version = "0.5.0" +version = "0.6.0" default-features = false features = ["async-connection-wrapper"] optional = true diff --git a/contrib/db_pools/lib/src/pool.rs b/contrib/db_pools/lib/src/pool.rs index 3d54dc485d..a7f685deb3 100644 --- a/contrib/db_pools/lib/src/pool.rs +++ b/contrib/db_pools/lib/src/pool.rs @@ -114,7 +114,7 @@ use {std::time::Duration, crate::{Error, Config}}; /// } /// ``` #[rocket::async_trait] -pub trait Pool: Sized + Send + Sync + 'static { +pub trait Pool: Sized + Send + 'static { /// The connection type managed by this pool, returned by [`Self::get()`]. type Connection; @@ -160,7 +160,7 @@ mod deadpool_postgres { #[cfg(feature = "diesel")] use diesel_async::pooled_connection::AsyncDieselConnectionManager; - pub trait DeadManager: Manager + Sized + Send + Sync + 'static { + pub trait DeadManager: Manager + Sized + Send + 'static { fn new(config: &Config) -> Result; } @@ -194,7 +194,7 @@ mod deadpool_postgres { #[rocket::async_trait] impl>> crate::Pool for Pool - where M::Type: Send, C: Send + Sync + 'static, M::Error: std::error::Error + where M::Type: Send, C: Send + 'static, M::Error: std::error::Error { type Error = Error>;