From f5f74aaa294fd738c5b90a296efda2a44119d17e Mon Sep 17 00:00:00 2001 From: Tushar Khatri Date: Fri, 12 Jun 2026 13:34:53 +0000 Subject: [PATCH] devices: 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 --- devices/src/aia.rs | 2 +- devices/src/gic.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/devices/src/aia.rs b/devices/src/aia.rs index 3471d1608..be813f317 100644 --- a/devices/src/aia.rs +++ b/devices/src/aia.rs @@ -39,7 +39,7 @@ pub struct Aia { } impl Aia { - #[allow(clippy::needless_pass_by_value)] + #[expect(clippy::needless_pass_by_value)] pub fn new( vcpu_count: u32, interrupt_manager: Arc>, diff --git a/devices/src/gic.rs b/devices/src/gic.rs index 732415482..214a3beb6 100644 --- a/devices/src/gic.rs +++ b/devices/src/gic.rs @@ -38,7 +38,7 @@ pub struct Gic { } impl Gic { - #[allow(clippy::needless_pass_by_value)] + #[expect(clippy::needless_pass_by_value)] pub fn new( vcpu_count: u32, interrupt_manager: Arc>,