Skip to content

Commit

Permalink
tests: clippy fixes for verify.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpu committed Aug 10, 2023
1 parent 47b1a7d commit b106e85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fn rcgen_ee_for_name(name: String, issuer: &Certificate) -> Vec<u8> {
ee.is_ca = IsCa::NoCa;
Certificate::from_params(ee)
.unwrap()
.serialize_der_with_signer(&issuer)
.serialize_der_with_signer(issuer)
.unwrap()
}

Expand All @@ -124,7 +124,7 @@ fn rcgen_name_constraints(der: &[u8]) -> rcgen::NameConstraints {

// There should be at least one permitted subtree.
assert!(
!constraints.permitted_subtrees.is_none(),
constraints.permitted_subtrees.is_some(),
"empty permitted subtrees in constraints"
);

Expand Down

0 comments on commit b106e85

Please sign in to comment.