From ac8d7077d31032ab2dfc4617fe2517329d48f232 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Tue, 3 Sep 2019 18:05:19 -0700 Subject: [PATCH] Remove uneeded Sync bounds --- postgres/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgres/src/config.rs b/postgres/src/config.rs index 9c44c4cb..4a2d4509 100644 --- a/postgres/src/config.rs +++ b/postgres/src/config.rs @@ -95,7 +95,7 @@ use crate::{Client, RUNTIME}; pub struct Config { config: tokio_postgres::Config, // this is an option since we don't want to boot up our default runtime unless we're actually going to use it. - executor: Option>>, + executor: Option>>, } impl fmt::Debug for Config { @@ -239,7 +239,7 @@ impl Config { /// Defaults to a postgres-specific tokio `Runtime`. pub fn executor(&mut self, executor: E) -> &mut Config where - E: Executor + 'static + Sync + Send, + E: Executor + 'static + Send, { self.executor = Some(Arc::new(Mutex::new(executor))); self