From 6029784b59c82c488752cf3587dc24e6cacb458f Mon Sep 17 00:00:00 2001 From: Arjen van Veen Date: Fri, 24 Nov 2023 10:49:22 +0100 Subject: [PATCH] try manual fmt --- src/presentation/reader.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/presentation/reader.rs b/src/presentation/reader.rs index 8dde4595..4d3c6c57 100644 --- a/src/presentation/reader.rs +++ b/src/presentation/reader.rs @@ -418,21 +418,21 @@ pub fn find_anchor( Ok(root_cert) => root_cert.tbs_certificate.subject == leaf_issuer, Err(_) => false, } - }, + } TrustAnchor::Custom(certificate, _ruleset) => { match x509_cert::Certificate::from_der(&certificate.bytes) { Ok(root_cert) => root_cert.tbs_certificate.subject == leaf_issuer, Err(_) => false, } - }, + } TrustAnchor::Aamva(certificate) => { match x509_cert::Certificate::from_der(&certificate.bytes) { Ok(root_cert) => root_cert.tbs_certificate.subject == leaf_issuer, Err(_) => false, } } - }) - else { + }) + else { return Err(Error::MdocAuth( "The certificate issuer does not match any known trusted issuer".to_string(), ));