Skip to content

Commit

Permalink
misc: clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cpu committed Jul 31, 2023
1 parent 6517fee commit 1705ddd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/crl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,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"
Expand Down
2 changes: 1 addition & 1 deletion tests/custom_ekus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(()));
Expand Down

0 comments on commit 1705ddd

Please sign in to comment.