Skip to content

Commit 46a3091

Browse files
committed
cargo fmt
1 parent 1e6e64b commit 46a3091

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/cert.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/store.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)