From bbf19195165d5da5f72aa8de08a02e5b566a545a Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Tue, 5 Sep 2023 14:10:50 +0100 Subject: [PATCH] dragonball: Resolve non-minimal-cfg warning - In rust 1.72, clippy warned clippy::non-minimal-cfg as the cfg has only one condition, so doesn't need to be wrapped in the all combinators. Fixes: #7902 Signed-off-by: stevenhorsman --- src/dragonball/src/vcpu/vcpu_manager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dragonball/src/vcpu/vcpu_manager.rs b/src/dragonball/src/vcpu/vcpu_manager.rs index 41200d0107..dff3aefc3b 100644 --- a/src/dragonball/src/vcpu/vcpu_manager.rs +++ b/src/dragonball/src/vcpu/vcpu_manager.rs @@ -832,7 +832,7 @@ mod hotplug { #[cfg(all(target_arch = "x86_64", feature = "dbs-upcall"))] use dbs_boot::mptable::APIC_VERSION; - #[cfg(all(target_arch = "aarch64"))] + #[cfg(target_arch = "aarch64")] const APIC_VERSION: u8 = 0; #[cfg(feature = "dbs-upcall")]