File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tokio-postgres/tests/test Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ use tokio_postgres::config::{SslMode, TargetSessionAttrs};
19
19
20
20
use crate :: { Client , RUNTIME } ;
21
21
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 ;
23
23
24
24
/// Connection configuration.
25
25
///
@@ -242,7 +242,7 @@ impl Config {
242
242
/// Defaults to a postgres-specific tokio `Runtime`.
243
243
pub fn executor < E > ( & mut self , executor : E ) -> & mut Config
244
244
where
245
- E : Executor < Box < dyn Future < Item = ( ) , Error = ( ) > + Send > > + ' static + Sync + Send ,
245
+ E : Executor < Box < dyn Future < Item = ( ) , Error = ( ) > + Send > > + ' static + Send ,
246
246
{
247
247
self . executor = Some ( Arc :: new ( executor) ) ;
248
248
self
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ fn target_session_attrs_ok() {
57
57
"host=localhost port=5433 user=postgres target_session_attrs=read-write" ,
58
58
NoTls ,
59
59
) ;
60
- runtime. block_on ( f) . unwrap ( ) ;
60
+ let _ = runtime. block_on ( f) . unwrap ( ) ;
61
61
}
62
62
63
63
#[ test]
You can’t perform that action at this time.
0 commit comments