From 01fcdbc5d9686641d61a278b6b468d7d6e4d3614 Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Fri, 16 Jun 2023 09:41:53 -0400 Subject: [PATCH] tests: fix unused client auth revocation test warns. The `ALL_SIGALGS` and `check_cert` portions of `client_auth_revocation.rs` are unused when testing without the alloc feature. --- tests/client_auth_revocation.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/client_auth_revocation.rs b/tests/client_auth_revocation.rs index 333797f6..d7aba382 100644 --- a/tests/client_auth_revocation.rs +++ b/tests/client_auth_revocation.rs @@ -14,6 +14,7 @@ extern crate webpki; +#[cfg(feature = "alloc")] static ALL_SIGALGS: &[&webpki::SignatureAlgorithm] = &[ &webpki::ECDSA_P256_SHA256, &webpki::ECDSA_P256_SHA384, @@ -61,6 +62,7 @@ impl<'a> webpki::CrlProvider<'a> for TestCrls<'a> { } } +#[cfg(feature = "alloc")] fn check_cert( ee: &[u8], intermediates: &[&[u8]],