@@ -11,7 +11,7 @@ use matrix_sdk::{
1111 ServerName , UserId ,
1212 } ,
1313 Client as MatrixClient , ClientBuildError as MatrixClientBuildError ,
14- ClientBuilder as MatrixClientBuilder , HttpError , IdParseError , RumaApiError ,
14+ HttpError , IdParseError , RumaApiError ,
1515} ;
1616use ruma:: api:: error:: { DeserializationError , FromHttpResponseError } ;
1717use tracing:: { debug, error} ;
@@ -258,7 +258,6 @@ pub struct ClientBuilder {
258258 proxy : Option < String > ,
259259 disable_ssl_verification : bool ,
260260 disable_automatic_token_refresh : bool ,
261- inner : MatrixClientBuilder ,
262261 cross_process_refresh_lock_id : Option < String > ,
263262 session_delegate : Option < Arc < dyn ClientSessionDelegate > > ,
264263 additional_root_certificates : Vec < Vec < u8 > > ,
@@ -281,7 +280,6 @@ impl ClientBuilder {
281280 proxy : None ,
282281 disable_ssl_verification : false ,
283282 disable_automatic_token_refresh : false ,
284- inner : MatrixClient :: builder ( ) ,
285283 cross_process_refresh_lock_id : None ,
286284 session_delegate : None ,
287285 additional_root_certificates : Default :: default ( ) ,
@@ -508,7 +506,7 @@ impl ClientBuilder {
508506
509507 pub ( crate ) async fn build_inner ( self : Arc < Self > ) -> Result < Client , ClientBuildError > {
510508 let builder = unwrap_or_clone_arc ( self ) ;
511- let mut inner_builder = builder. inner ;
509+ let mut inner_builder = MatrixClient :: builder ( ) ;
512510
513511 if let Some ( session_path) = & builder. session_path {
514512 let data_path = PathBuf :: from ( session_path) ;
0 commit comments