Skip to content

Commit 042b645

Browse files
committed
Update diesel-async to 0.6, and remove an unnecessary Sync bound
1 parent 504efef commit 042b645

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

contrib/db_pools/lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ features = ["compat-3-0-0", "rustls-tls"]
6464
optional = true
6565

6666
[dependencies.diesel-async]
67-
version = "0.5.0"
67+
version = "0.6.0"
6868
default-features = false
6969
features = ["async-connection-wrapper"]
7070
optional = true

contrib/db_pools/lib/src/pool.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ use {std::time::Duration, crate::{Error, Config}};
114114
/// }
115115
/// ```
116116
#[rocket::async_trait]
117-
pub trait Pool: Sized + Send + Sync + 'static {
117+
pub trait Pool: Sized + Send + 'static {
118118
/// The connection type managed by this pool, returned by [`Self::get()`].
119119
type Connection;
120120

@@ -160,7 +160,7 @@ mod deadpool_postgres {
160160
#[cfg(feature = "diesel")]
161161
use diesel_async::pooled_connection::AsyncDieselConnectionManager;
162162

163-
pub trait DeadManager: Manager + Sized + Send + Sync + 'static {
163+
pub trait DeadManager: Manager + Sized + Send + 'static {
164164
fn new(config: &Config) -> Result<Self, Self::Error>;
165165
}
166166

@@ -194,7 +194,7 @@ mod deadpool_postgres {
194194

195195
#[rocket::async_trait]
196196
impl<M: DeadManager, C: From<Object<M>>> crate::Pool for Pool<M, C>
197-
where M::Type: Send, C: Send + Sync + 'static, M::Error: std::error::Error
197+
where M::Type: Send, C: Send + 'static, M::Error: std::error::Error
198198
{
199199
type Error = Error<PoolError<M::Error>>;
200200

0 commit comments

Comments
 (0)