Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ancwrd1 committed Feb 22, 2025
1 parent 1e6e64b commit 46a3091
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/cert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ impl CertContext {
);

for (index, element) in elements.iter().enumerate() {
if index != 0 && 0 != ((**element).TrustStatus.dwInfoStatus
& CERT_TRUST_IS_SELF_SIGNED) {
if index != 0
&& 0 != ((**element).TrustStatus.dwInfoStatus
& CERT_TRUST_IS_SELF_SIGNED)
{
break;
}

Expand Down
4 changes: 3 additions & 1 deletion src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ impl CertStore {
CERT_SHA256_HASH_PROP_ID,
prop_data.as_mut_ptr() as *mut c_void,
&mut prop_data_len,
) != 0 && prop_data[..prop_data_len as usize] == sha256_hash[..] {
) != 0
&& prop_data[..prop_data_len as usize] == sha256_hash[..]
{
let cert = CertDuplicateCertificateContext(cert);
certs.push(CertContext::new_owned(cert))
}
Expand Down

0 comments on commit 46a3091

Please sign in to comment.