File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,9 @@ pub trait ConfigBuilderExt {
30
30
/// This will return an error if no valid certs were found. In that case,
31
31
/// it's recommended to use `with_webpki_roots`.
32
32
#[ cfg( feature = "rustls-native-certs" ) ]
33
- fn with_native_roots ( self ) -> std:: io:: Result < ConfigBuilder < ClientConfig , WantsClientCert > > ;
33
+ fn with_native_roots (
34
+ self ,
35
+ ) -> Result < ConfigBuilder < ClientConfig , WantsClientCert > , std:: io:: Error > ;
34
36
35
37
/// This configures the webpki roots, which are Mozilla's set of
36
38
/// trusted roots as packaged by webpki-roots.
@@ -49,7 +51,9 @@ impl ConfigBuilderExt for ConfigBuilder<ClientConfig, WantsVerifier> {
49
51
50
52
#[ cfg( feature = "rustls-native-certs" ) ]
51
53
#[ cfg_attr( not( feature = "logging" ) , allow( unused_variables) ) ]
52
- fn with_native_roots ( self ) -> std:: io:: Result < ConfigBuilder < ClientConfig , WantsClientCert > > {
54
+ fn with_native_roots (
55
+ self ,
56
+ ) -> Result < ConfigBuilder < ClientConfig , WantsClientCert > , std:: io:: Error > {
53
57
let mut roots = rustls:: RootCertStore :: empty ( ) ;
54
58
let mut valid_count = 0 ;
55
59
let mut invalid_count = 0 ;
You can’t perform that action at this time.
0 commit comments