File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -142,8 +142,10 @@ impl CertContext {
142142 ) ;
143143
144144 for ( index, element) in elements. iter ( ) . enumerate ( ) {
145- if index != 0 && 0 != ( ( * * element) . TrustStatus . dwInfoStatus
146- & CERT_TRUST_IS_SELF_SIGNED ) {
145+ if index != 0
146+ && 0 != ( ( * * element) . TrustStatus . dwInfoStatus
147+ & CERT_TRUST_IS_SELF_SIGNED )
148+ {
147149 break ;
148150 }
149151
Original file line number Diff line number Diff line change @@ -227,7 +227,9 @@ impl CertStore {
227227 CERT_SHA256_HASH_PROP_ID ,
228228 prop_data. as_mut_ptr ( ) as * mut c_void ,
229229 & mut prop_data_len,
230- ) != 0 && prop_data[ ..prop_data_len as usize ] == sha256_hash[ ..] {
230+ ) != 0
231+ && prop_data[ ..prop_data_len as usize ] == sha256_hash[ ..]
232+ {
231233 let cert = CertDuplicateCertificateContext ( cert) ;
232234 certs. push ( CertContext :: new_owned ( cert) )
233235 }
You can’t perform that action at this time.
0 commit comments