Skip to content

Commit 24cf929

Browse files
committed
Remove unneeded Sync bounds
1 parent c0fcf34 commit 24cf929

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

postgres/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use tokio_postgres::config::{SslMode, TargetSessionAttrs};
1919

2020
use crate::{Client, RUNTIME};
2121

22-
type DynExecutor = dyn Executor<Box<dyn Future<Item = (), Error = ()> + Send>> + Sync + Send;
22+
type DynExecutor = dyn Executor<Box<dyn Future<Item = (), Error = ()> + Send>> + Send;
2323

2424
/// Connection configuration.
2525
///
@@ -242,7 +242,7 @@ impl Config {
242242
/// Defaults to a postgres-specific tokio `Runtime`.
243243
pub fn executor<E>(&mut self, executor: E) -> &mut Config
244244
where
245-
E: Executor<Box<dyn Future<Item = (), Error = ()> + Send>> + 'static + Sync + Send,
245+
E: Executor<Box<dyn Future<Item = (), Error = ()> + Send>> + 'static + Send,
246246
{
247247
self.executor = Some(Arc::new(executor));
248248
self

tokio-postgres/tests/test/runtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn target_session_attrs_ok() {
5757
"host=localhost port=5433 user=postgres target_session_attrs=read-write",
5858
NoTls,
5959
);
60-
runtime.block_on(f).unwrap();
60+
let _ = runtime.block_on(f).unwrap();
6161
}
6262

6363
#[test]

0 commit comments

Comments
 (0)