From d06d197522bcf187d1ced827761c5381e6dd3ad3 Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Fri, 26 Jun 2026 15:54:59 +0200 Subject: [PATCH] pv: Fix unfulfilled_lint_expectations warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The test cases uses the ml_kem functions, therefore disable the directive for tests. $ cargo test ... --> pv/src/openssl_extensions/ml_kem.rs:5:11 | 5 | #![expect(unused)] | ^^^^^^ | = note: `#[warn(unfulfilled_lint_expectations)]` on by default Reviewed-by: Steffen Eiden Signed-off-by: Marc Hartmayer Signed-off-by: Jan Höppner --- rust/pv/src/openssl_extensions/ml_kem.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/pv/src/openssl_extensions/ml_kem.rs b/rust/pv/src/openssl_extensions/ml_kem.rs index f1aceaf0..a03e33c1 100644 --- a/rust/pv/src/openssl_extensions/ml_kem.rs +++ b/rust/pv/src/openssl_extensions/ml_kem.rs @@ -2,7 +2,7 @@ // // Copyright IBM Corp. -#![expect(unused)] +#![cfg_attr(not(test), expect(unused))] use std::ffi::CStr; use std::ptr::NonNull;