virtio-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 <hello@tusharkhatri.in>
This commit is contained in:
Tushar Khatri
2026-06-11 15:39:51 +00:00
committed by Rob Bradford
parent 712d42e6ac
commit 4f68b687aa
15 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -416,7 +416,7 @@ pub struct NetState {
impl Net {
/// Create a new virtio network device with the given TAP interface.
#[allow(clippy::too_many_arguments)]
#[expect(clippy::too_many_arguments)]
pub fn new_with_tap(
id: String,
taps: Vec<Tap>,
@@ -528,7 +528,7 @@ impl Net {
/// Create a new virtio network device with the given IP address and
/// netmask.
#[allow(clippy::too_many_arguments)]
#[expect(clippy::too_many_arguments)]
pub fn new(
id: String,
if_name: Option<&str>,
@@ -576,7 +576,7 @@ impl Net {
)
}
#[allow(clippy::too_many_arguments)]
#[expect(clippy::too_many_arguments)]
pub fn from_tap_fds(
id: String,
fds: &[RawFd],