Skip to content

Commit

Permalink
tests: fix unused client auth revocation test warns.
Browse files Browse the repository at this point in the history
The `ALL_SIGALGS` and `check_cert` portions of
`client_auth_revocation.rs` are unused when testing without the alloc
feature.
  • Loading branch information
cpu committed Jun 16, 2023
1 parent 4336788 commit 01fcdbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/client_auth_revocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

extern crate webpki;

#[cfg(feature = "alloc")]
static ALL_SIGALGS: &[&webpki::SignatureAlgorithm] = &[
&webpki::ECDSA_P256_SHA256,
&webpki::ECDSA_P256_SHA384,
Expand Down Expand Up @@ -61,6 +62,7 @@ impl<'a> webpki::CrlProvider<'a> for TestCrls<'a> {
}
}

#[cfg(feature = "alloc")]
fn check_cert(
ee: &[u8],
intermediates: &[&[u8]],
Expand Down

0 comments on commit 01fcdbc

Please sign in to comment.