Skip to content

Commit 12c9d06

Browse files
Fix rustfmt formatting in revocation.rs
1 parent 77e48f5 commit 12c9d06

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

cdx-core/src/security/revocation.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -469,17 +469,16 @@ impl RevocationChecker {
469469
let serial = bytes_to_hex(serial_bytes);
470470

471471
// Get CRL distribution point
472-
let crl_url = extract_crl_url(&cert).ok_or_else(|| {
473-
invalid_certificate("No CRL distribution point found in certificate")
474-
})?;
472+
let crl_url = extract_crl_url(&cert)
473+
.ok_or_else(|| invalid_certificate("No CRL distribution point found in certificate"))?;
475474

476475
// Fetch CRL
477-
let response =
478-
self.client
479-
.get(&crl_url)
480-
.send()
481-
.await
482-
.map_err(|e| network_error(format!("CRL fetch failed: {e}")))?;
476+
let response = self
477+
.client
478+
.get(&crl_url)
479+
.send()
480+
.await
481+
.map_err(|e| network_error(format!("CRL fetch failed: {e}")))?;
483482

484483
if !response.status().is_success() {
485484
return Ok(RevocationResult::new(

0 commit comments

Comments
 (0)