@@ -65,9 +65,7 @@ fn the_following_http_interactions_have_been_setup(world: &mut ConsumerWorld, st
6565#[ when( expr = "the mock server is started with interaction {int}" ) ]
6666async fn the_mock_server_is_started_with_interaction ( world : & mut ConsumerWorld , interaction : usize ) -> anyhow:: Result < ( ) > {
6767 if rustls:: crypto:: CryptoProvider :: get_default ( ) . is_none ( ) {
68- if let Err ( _) = rustls:: crypto:: ring:: default_provider ( ) . install_default ( ) {
69- warn ! ( "failed to installed the default crypto provider" ) ;
70- }
68+ let _ = rustls:: crypto:: ring:: default_provider ( ) . install_default ( ) ;
7169 }
7270
7371 let pact = RequestResponsePact {
@@ -107,9 +105,7 @@ async fn the_mock_server_is_started_with_interaction_but_with_the_following_chan
107105 interaction : usize
108106) -> anyhow:: Result < ( ) > {
109107 if rustls:: crypto:: CryptoProvider :: get_default ( ) . is_none ( ) {
110- if let Err ( _) = rustls:: crypto:: ring:: default_provider ( ) . install_default ( ) {
111- warn ! ( "failed to installed the default crypto provider" ) ;
112- }
108+ let _ = rustls:: crypto:: ring:: default_provider ( ) . install_default ( ) ;
113109 }
114110
115111 let mut request_response_interaction = world. interactions
@@ -175,9 +171,7 @@ async fn the_mock_server_is_started_with_interaction_but_with_the_following_chan
175171#[ when( expr = "the mock server is started with interactions {string}" ) ]
176172async fn the_mock_server_is_started_with_interactions ( world : & mut ConsumerWorld , ids : String ) -> anyhow:: Result < ( ) > {
177173 if rustls:: crypto:: CryptoProvider :: get_default ( ) . is_none ( ) {
178- if let Err ( _) = rustls:: crypto:: ring:: default_provider ( ) . install_default ( ) {
179- warn ! ( "failed to installed the default crypto provider" ) ;
180- }
174+ let _ = rustls:: crypto:: ring:: default_provider ( ) . install_default ( ) ;
181175 }
182176
183177 let interactions = ids. split ( "," )
0 commit comments