Skip to content

Commit ac8d707

Browse files
committed
Remove uneeded Sync bounds
1 parent c456d2c commit ac8d707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postgres/src/config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ use crate::{Client, RUNTIME};
9595
pub struct Config {
9696
config: tokio_postgres::Config,
9797
// this is an option since we don't want to boot up our default runtime unless we're actually going to use it.
98-
executor: Option<Arc<Mutex<dyn Executor + Sync + Send>>>,
98+
executor: Option<Arc<Mutex<dyn Executor + Send>>>,
9999
}
100100

101101
impl fmt::Debug for Config {
@@ -239,7 +239,7 @@ impl Config {
239239
/// Defaults to a postgres-specific tokio `Runtime`.
240240
pub fn executor<E>(&mut self, executor: E) -> &mut Config
241241
where
242-
E: Executor + 'static + Sync + Send,
242+
E: Executor + 'static + Send,
243243
{
244244
self.executor = Some(Arc::new(Mutex::new(executor)));
245245
self

0 commit comments

Comments
 (0)