From 3b4f7ad545f4988433ab296dd68ad65c2df02e3c Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Fri, 28 Jul 2023 16:07:39 -0400 Subject: [PATCH] misc: clippy fixes --- src/crl.rs | 2 ++ tests/custom_ekus.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/crl.rs b/src/crl.rs index 4606eabd..976d34e2 100644 --- a/src/crl.rs +++ b/src/crl.rs @@ -900,6 +900,8 @@ mod tests { #[test] #[cfg(feature = "alloc")] + // redundant clone, clone_on_copy allowed to verify derived traits. + #[allow(clippy::redundant_clone, clippy::clone_on_copy)] fn test_derived_traits() { let crl = crate::crl::BorrowedCertRevocationList::from_der(include_bytes!( "../tests/crls/crl.valid.der" diff --git a/tests/custom_ekus.rs b/tests/custom_ekus.rs index 05c4653c..ec6a1409 100644 --- a/tests/custom_ekus.rs +++ b/tests/custom_ekus.rs @@ -31,7 +31,7 @@ pub fn verify_custom_eku_mdoc() { let ee = include_bytes!("misc/mdoc_eku.ee.der"); let ca = include_bytes!("misc/mdoc_eku.ca.der"); - let eku_mdoc = KeyUsage::required(&[(40 * 1) + 0, 129, 140, 93, 5, 1, 2]); + let eku_mdoc = KeyUsage::required(&[40, 129, 140, 93, 5, 1, 2]); check_cert(ee, ca, eku_mdoc, time, Ok(())); check_cert(ee, ca, KeyUsage::server_auth(), time, err); check_cert(ee, ca, eku_mdoc, time, Ok(()));