File tree Expand file tree Collapse file tree
tokio-postgres/tests/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ use tokio_postgres::config::{SslMode, TargetSessionAttrs};
1919
2020use 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
Original file line number Diff line number Diff 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]
You can’t perform that action at this time.
0 commit comments