From 342cd79d40c259de4e29b868d67c36fd8ae9c25a Mon Sep 17 00:00:00 2001 From: Joe Birr-Pixton Date: Tue, 25 Jun 2024 08:55:23 +0100 Subject: [PATCH] Fix `EkuError` unused warning on windows --- rustls-platform-verifier/src/verification/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rustls-platform-verifier/src/verification/mod.rs b/rustls-platform-verifier/src/verification/mod.rs index f607aad2..8fedb379 100644 --- a/rustls-platform-verifier/src/verification/mod.rs +++ b/rustls-platform-verifier/src/verification/mod.rs @@ -40,6 +40,7 @@ pub use windows::Verifier; /// An EKU was invalid for the use case of verifying a server certificate. /// /// This error is used primarily for tests. +#[cfg_attr(windows, allow(dead_code))] // not used by windows verifier #[derive(Debug, PartialEq)] pub(crate) struct EkuError;