From 510aa438f8340d677e5977c8e36dd59bf3509720 Mon Sep 17 00:00:00 2001 From: Tushar Khatri Date: Wed, 17 Jun 2026 16:05:02 +0000 Subject: [PATCH] tests: reevaluate #[allow] attributes Convert the still-needed #[allow]s to #[expect] so they warn if the lints stop firing. Part of #8326. Signed-off-by: Tushar Khatri --- cloud-hypervisor/tests/integration.rs | 2 +- cloud-hypervisor/tests/integration_cvm.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud-hypervisor/tests/integration.rs b/cloud-hypervisor/tests/integration.rs index 43b08b158..531c4c6d2 100644 --- a/cloud-hypervisor/tests/integration.rs +++ b/cloud-hypervisor/tests/integration.rs @@ -3,7 +3,7 @@ // SPDX-License-Identifier: Apache-2.0 // #![cfg(any(devcli_testenv, clippy))] -#![allow(clippy::undocumented_unsafe_blocks)] +#![expect(clippy::undocumented_unsafe_blocks)] // TODO: Trim qualified paths in this crate, then drop this expectation. #![expect(clippy::absolute_paths)] // When enabling the `mshv` feature, we skip quite some tests and diff --git a/cloud-hypervisor/tests/integration_cvm.rs b/cloud-hypervisor/tests/integration_cvm.rs index d8282ff3e..b675bfa8c 100644 --- a/cloud-hypervisor/tests/integration_cvm.rs +++ b/cloud-hypervisor/tests/integration_cvm.rs @@ -3,7 +3,7 @@ // SPDX-License-Identifier: Apache-2.0 // #![cfg(any(devcli_testenv, clippy))] -#![allow(clippy::undocumented_unsafe_blocks)] +#![expect(clippy::undocumented_unsafe_blocks)] // TODO: Trim qualified paths in this crate, then drop this expectation. #![expect(clippy::absolute_paths)] // When enabling the `mshv` feature, we skip quite some tests and