From 269ee000ce736ff1ea4f0c8f547883dae65402cc Mon Sep 17 00:00:00 2001 From: Christopher Swenson Date: Mon, 3 Feb 2025 09:48:00 -0800 Subject: [PATCH] Cargo fmt --- dpe/build.rs | 4 +++- dpe/src/x509.rs | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dpe/build.rs b/dpe/build.rs index 5cff93a6..53c244da 100644 --- a/dpe/build.rs +++ b/dpe/build.rs @@ -20,7 +20,9 @@ fn main() { let max_handles_str = format!("pub const MAX_HANDLES: usize = {};", arbitrary_max_handles); let dest_path = PathBuf::from(&dest_path); - if dest_path.exists() && std::fs::read_to_string(&dest_path).unwrap_or_default() != max_handles_str { + if dest_path.exists() + && std::fs::read_to_string(&dest_path).unwrap_or_default() != max_handles_str + { std::fs::write(&dest_path, max_handles_str).unwrap(); } println!("cargo:rerun-if-changed={}", dest_path.display()); diff --git a/dpe/src/x509.rs b/dpe/src/x509.rs index e4cd1d32..fce1679f 100644 --- a/dpe/src/x509.rs +++ b/dpe/src/x509.rs @@ -1590,7 +1590,7 @@ impl CertWriter<'_> { /// AuthorityKeyIdentifier ::= SEQUENCE { /// keyIdentifier [0] KeyIdentifier OPTIONAL, /// authorityCertIssuer [1] GeneralNames OPTIONAL, - /// authorityCertSerialNumber [2] CertificateSerialNumber OPTIONAL + /// authorityCertSerialNumber [2] CertificateSerialNumber OPTIONAL /// } fn encode_authority_key_identifier_extension( &mut self, @@ -2994,7 +2994,9 @@ pub(crate) mod tests { _ => (), } - if let Err(_) = cert.get_extension_unique(&oid!(2.5.29 .35)) { panic!("multiple authority key identifier extensions found") } + if let Err(_) = cert.get_extension_unique(&oid!(2.5.29 .35)) { + panic!("multiple authority key identifier extensions found") + } match cert.subject_alternative_name() { Ok(Some(ext)) => {