@@ -196,6 +196,7 @@ impl RuntimeConfig {
196
196
for opts in & opt_layer. client_tls_opts {
197
197
let parsed = parse_client_tls_opts ( opts) . context ( "parsing client tls options" ) ?;
198
198
for component_id in & opts. component_ids {
199
+ #[ allow( clippy:: mutable_key_type) ]
199
200
let hostmap = parsed
200
201
. hosts
201
202
. clone ( )
@@ -636,6 +637,7 @@ ca_roots_file = "{}"
636
637
. get( & "component-no1" . to_string( ) )
637
638
. is_some( ) ) ;
638
639
640
+ #[ allow( clippy:: mutable_key_type) ]
639
641
let component_no1_client_tls_opts = client_tls_opts_ok
640
642
. get ( & "component-no1" . to_string ( ) )
641
643
. expect ( "get opts for component-no1" ) ;
@@ -653,6 +655,7 @@ ca_roots_file = "{}"
653
655
. get( & "component-no2" . to_string( ) )
654
656
. is_some( ) ) ;
655
657
658
+ #[ allow( clippy:: mutable_key_type) ]
656
659
let component_no2_client_tls_opts = client_tls_opts_ok
657
660
. get ( & "component-no2" . to_string ( ) )
658
661
. expect ( "get opts for component-no2" ) ;
@@ -712,6 +715,7 @@ ca_roots_file = "{}"
712
715
. get( & "component-no1" . to_string( ) )
713
716
. is_some( ) ) ;
714
717
718
+ #[ allow( clippy:: mutable_key_type) ]
715
719
let component_no1_client_tls_opts = client_tls_opts_ok
716
720
. get ( & "component-no1" . to_string ( ) )
717
721
. expect ( "get opts for component-no1" ) ;
@@ -789,9 +793,7 @@ fn parse_client_tls_opts(inp: &ClientTlsOpts) -> Result<ParsedClientTlsOpts, any
789
793
// 2. custom_root_ca is not provided
790
794
//
791
795
// if custom_root_ca is provided, use_ca_webpki_roots defaults to false
792
- let ca_webpki_roots =
793
- inp. ca_webpki_roots
794
- . unwrap_or ( if custom_root_ca_provided { false } else { true } ) ;
796
+ let ca_webpki_roots = inp. ca_webpki_roots . unwrap_or ( !custom_root_ca_provided) ;
795
797
796
798
let parsed_component_ids: Vec < String > = inp
797
799
. component_ids
0 commit comments