From b106e85153c66dd15f09913cba59562c9c188bef Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Thu, 10 Aug 2023 09:05:11 -0400 Subject: [PATCH] tests: clippy fixes for verify. --- tests/verify.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/verify.rs b/tests/verify.rs index 49e4682..690c80a 100644 --- a/tests/verify.rs +++ b/tests/verify.rs @@ -101,7 +101,7 @@ fn rcgen_ee_for_name(name: String, issuer: &Certificate) -> Vec { ee.is_ca = IsCa::NoCa; Certificate::from_params(ee) .unwrap() - .serialize_der_with_signer(&issuer) + .serialize_der_with_signer(issuer) .unwrap() } @@ -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" );