File tree 8 files changed +12
-17
lines changed
8 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 1
- #![ deny(
2
- rust_2018_idioms,
3
- warnings,
4
- unreachable_pub,
5
- missing_debug_implementations
6
- ) ]
1
+ #![ deny( warnings, unreachable_pub, missing_debug_implementations) ]
7
2
#![ warn( nonstandard_style, future_incompatible) ]
8
3
9
4
//! Resource path matching library.
Original file line number Diff line number Diff line change @@ -63,5 +63,5 @@ fn from_hex(v: u8) -> Option<u8> {
63
63
64
64
#[ inline]
65
65
fn restore_ch ( d1 : u8 , d2 : u8 ) -> Option < u8 > {
66
- from_hex ( d1) . and_then ( |d1| from_hex ( d2) . map ( move |d2| d1 << 4 | d2) )
66
+ from_hex ( d1) . and_then ( |d1| from_hex ( d2) . map ( move |d2| ( d1 << 4 ) | d2) )
67
67
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ mod select;
14
14
pub use self :: either:: Either ;
15
15
pub use self :: join:: { join, join_all} ;
16
16
pub use self :: lazy:: { lazy, Lazy } ;
17
- pub use self :: on_drop:: { OnDropFn , OnDropFutureExt } ;
17
+ pub use self :: on_drop:: { OnDropFn , OnDropFuture , OnDropFutureExt } ;
18
18
pub use self :: ready:: Ready ;
19
19
pub use self :: select:: select;
20
20
Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ where
290
290
let mut inflight = self . inflight . borrow_mut ( ) ;
291
291
inflight. remove ( & ioref) ;
292
292
293
- if inflight. len ( ) == 0 {
293
+ if inflight. is_empty ( ) {
294
294
if let Some ( tx) = self . tx . take ( ) {
295
295
let _ = tx. send ( ( ) ) ;
296
296
}
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ where
286
286
let mut inflight = self . inflight . borrow_mut ( ) ;
287
287
inflight. remove ( & ioref) ;
288
288
289
- if inflight. len ( ) == 0 {
289
+ if inflight. is_empty ( ) {
290
290
if let Some ( tx) = self . tx . take ( ) {
291
291
let _ = tx. send ( ( ) ) ;
292
292
}
Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ where
387
387
let mut inflight = self . inflight . borrow_mut ( ) ;
388
388
inflight. remove ( & ioref) ;
389
389
390
- if inflight. len ( ) == 0 {
390
+ if inflight. is_empty ( ) {
391
391
if let Some ( tx) = self . tx . take ( ) {
392
392
let _ = tx. send ( ( ) ) ;
393
393
}
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ where
257
257
server,
258
258
client : Client :: build ( ) . finish ( ) ,
259
259
}
260
- . set_client_timeout ( Seconds ( 60 ) , Millis ( 60_000 ) )
260
+ . set_client_timeout ( Seconds ( 90 ) , Millis ( 90_000 ) )
261
261
}
262
262
263
263
#[ derive( Debug ) ]
Original file line number Diff line number Diff line change @@ -718,7 +718,7 @@ where
718
718
Connector :: default ( )
719
719
. lifetime ( Seconds :: ZERO )
720
720
. keep_alive ( Seconds ( 60 ) )
721
- . timeout ( Millis ( 60_000 ) )
721
+ . timeout ( Millis ( 90_000 ) )
722
722
. disconnect_timeout ( Seconds ( 5 ) )
723
723
. openssl ( builder. build ( ) )
724
724
. finish ( )
@@ -727,14 +727,14 @@ where
727
727
{
728
728
Connector :: default ( )
729
729
. lifetime ( Seconds :: ZERO )
730
- . timeout ( Millis ( 60_000 ) )
730
+ . timeout ( Millis ( 90_000 ) )
731
731
. finish ( )
732
732
}
733
733
} ;
734
734
735
735
Client :: build ( )
736
736
. connector ( connector)
737
- . timeout ( Seconds ( 60 ) )
737
+ . timeout ( Seconds ( 90 ) )
738
738
. finish ( )
739
739
} ;
740
740
@@ -929,7 +929,7 @@ impl TestServer {
929
929
930
930
WsClient :: build ( self . url ( path) )
931
931
. address ( self . addr )
932
- . timeout ( Seconds ( 30 ) )
932
+ . timeout ( Seconds ( 60 ) )
933
933
. openssl ( builder. build ( ) )
934
934
. take ( )
935
935
. finish ( )
@@ -945,7 +945,7 @@ impl TestServer {
945
945
} else {
946
946
WsClient :: build ( self . url ( path) )
947
947
. address ( self . addr )
948
- . timeout ( Seconds ( 30 ) )
948
+ . timeout ( Seconds ( 60 ) )
949
949
. finish ( )
950
950
. unwrap ( )
951
951
. connect ( )
You can’t perform that action at this time.
0 commit comments