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(()));