@@ -443,10 +443,7 @@ async fn create_streamable_http_client(
443443
444444 let transport = StreamableHttpClientTransport :: with_client (
445445 http_client,
446- StreamableHttpClientTransportConfig {
447- uri : uri. into ( ) ,
448- ..Default :: default ( )
449- } ,
446+ StreamableHttpClientTransportConfig :: with_uri ( uri) ,
450447 ) ;
451448
452449 let timeout_duration = Duration :: from_secs ( resolve_timeout ( timeout) ) ;
@@ -475,10 +472,7 @@ async fn create_streamable_http_client(
475472 let auth_client = AuthClient :: new ( auth_http_client, auth_manager) ;
476473 let transport = StreamableHttpClientTransport :: with_client (
477474 auth_client,
478- StreamableHttpClientTransportConfig {
479- uri : uri. into ( ) ,
480- ..Default :: default ( )
481- } ,
475+ StreamableHttpClientTransportConfig :: with_uri ( uri) ,
482476 ) ;
483477 Ok ( Box :: new (
484478 McpClient :: connect (
@@ -2318,11 +2312,11 @@ mod tests {
23182312
23192313 fn transport_err ( error : Box < dyn std:: error:: Error + Send + Sync > ) -> ClientInitializeError {
23202314 ClientInitializeError :: TransportError {
2321- error : rmcp:: transport:: DynamicTransportError {
2322- transport_name : "test" . into ( ) ,
2323- transport_type_id : std:: any:: TypeId :: of :: < ( ) > ( ) ,
2315+ error : rmcp:: transport:: DynamicTransportError :: from_parts (
2316+ "test" ,
2317+ std:: any:: TypeId :: of :: < ( ) > ( ) ,
23242318 error,
2325- } ,
2319+ ) ,
23262320 context : "test context" . into ( ) ,
23272321 }
23282322 }
@@ -2337,9 +2331,9 @@ mod tests {
23372331 fn test_oauth_fallback_on_typed_auth_required ( ) {
23382332 let err = streamable_err (
23392333 rmcp:: transport:: streamable_http_client:: StreamableHttpError :: AuthRequired (
2340- rmcp:: transport:: streamable_http_client:: AuthRequiredError {
2341- www_authenticate_header : "Bearer realm=\" test\" " . to_string ( ) ,
2342- } ,
2334+ rmcp:: transport:: streamable_http_client:: AuthRequiredError :: new (
2335+ "Bearer realm=\" test\" " . to_string ( ) ,
2336+ ) ,
23432337 ) ,
23442338 ) ;
23452339 assert ! ( should_attempt_oauth_fallback( & Err ( err) ) ) ;
0 commit comments