@@ -32,19 +32,19 @@ use std::time::Duration;
32
32
33
33
use base64:: Engine ;
34
34
use futures_util:: io:: { BufReader , BufWriter } ;
35
- use jsonrpsee_core:: client:: { MaybeSend , ReceivedMessage , TransportReceiverT , TransportSenderT } ;
36
35
use jsonrpsee_core:: TEN_MB_SIZE_BYTES ;
37
- use jsonrpsee_core:: { async_trait, Cow } ;
36
+ use jsonrpsee_core:: client:: { MaybeSend , ReceivedMessage , TransportReceiverT , TransportSenderT } ;
37
+ use jsonrpsee_core:: { Cow , async_trait} ;
38
38
use soketto:: connection:: CloseReason ;
39
39
use soketto:: connection:: Error :: Utf8 ;
40
40
use soketto:: data:: ByteSlice125 ;
41
41
use soketto:: handshake:: client:: { Client as WsHandshakeClient , ServerResponse } ;
42
- use soketto:: { connection , Data , Incoming } ;
42
+ use soketto:: { Data , Incoming , connection } ;
43
43
use thiserror:: Error ;
44
44
use tokio:: net:: TcpStream ;
45
45
use tokio_util:: compat:: { Compat , TokioAsyncReadCompatExt } ;
46
46
47
- pub use http:: { uri :: InvalidUri , HeaderMap , HeaderValue , Uri } ;
47
+ pub use http:: { HeaderMap , HeaderValue , Uri , uri :: InvalidUri } ;
48
48
pub use soketto:: handshake:: client:: Header ;
49
49
pub use stream:: EitherStream ;
50
50
pub use tokio:: io:: { AsyncRead , AsyncWrite } ;
@@ -428,7 +428,9 @@ impl WsTransportClientBuilder {
428
428
match target. path_and_query . rfind ( '/' ) {
429
429
Some ( offset) => target. path_and_query . replace_range ( offset + 1 .., & location) ,
430
430
None => {
431
- let e = format ! ( "path_and_query: {location}; this is a bug it must contain `/` please open issue" ) ;
431
+ let e = format ! (
432
+ "path_and_query: {location}; this is a bug it must contain `/` please open issue"
433
+ ) ;
432
434
err = Some ( Err ( WsHandshakeError :: Url ( e. into ( ) ) ) ) ;
433
435
continue ;
434
436
}
@@ -638,13 +640,13 @@ fn build_tls_config(cert_store: &CertificateStore) -> Result<tokio_rustls::TlsCo
638
640
use rustls_platform_verifier:: ConfigVerifierExt ;
639
641
640
642
rustls:: ClientConfig :: with_platform_verifier ( )
641
- } ,
643
+ }
642
644
#[ cfg( not( feature = "tls-rustls-platform-verifier" ) ) ]
643
645
CertificateStore :: Native => {
644
646
return Err ( WsHandshakeError :: CertificateStore ( io:: Error :: new (
645
647
io:: ErrorKind :: Other ,
646
648
"Native certificate store not supported, either call `Builder::with_custom_cert_store` or enable the `tls-rustls-platform-verifier` feature." ,
647
- ) ) )
649
+ ) ) ) ;
648
650
}
649
651
CertificateStore :: Custom ( cfg) => cfg. clone ( ) ,
650
652
} ;
0 commit comments