Skip to content

Commit

Permalink
Rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bkstein committed Aug 3, 2023
1 parent 64c7b82 commit 9eb70cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cms/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ where
// encapContentInfo eContentType value in the signed-data or
// authenticated-data.
let econtent_type = self.encapsulated_content_info.econtent_type;
let signed_attributes_content_type = signed_attributes
.iter()
.find(|attr| attr.oid.cmp(&const_oid::db::rfc5911::ID_CONTENT_TYPE) == Ordering::Equal);
let signed_attributes_content_type = signed_attributes.iter().find(|attr| {
attr.oid.cmp(&const_oid::db::rfc5911::ID_CONTENT_TYPE) == Ordering::Equal
});
if let Some(signed_attributes_content_type) = signed_attributes_content_type {
// Check against `eContentType`
if signed_attributes_content_type.oid != econtent_type {
Expand Down
4 changes: 3 additions & 1 deletion cms/tests/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,9 @@ fn test_degenerate_certificates_only_cms() {
let mut signed_data_builder = SignedDataBuilder::new(&encapsulated_content_info);

for cert in certs {
signed_data_builder.add_certificate(CertificateChoices::Certificate(cert.clone())).unwrap();
signed_data_builder
.add_certificate(CertificateChoices::Certificate(cert.clone()))
.unwrap();
}

let degenerate_certificates_only_cms = signed_data_builder.build().unwrap();
Expand Down

0 comments on commit 9eb70cc

Please sign in to comment.