mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
712d42e6ac
commit
4f68b687aa
@@ -71,7 +71,7 @@ pub struct Fs {
|
||||
|
||||
impl Fs {
|
||||
/// Create a new virtio-fs device.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
#[expect(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
id: String,
|
||||
path: &str,
|
||||
|
||||
@@ -59,7 +59,7 @@ pub struct GenericVhostUser {
|
||||
|
||||
impl GenericVhostUser {
|
||||
/// Create a new generic vhost-user device.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
#[expect(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
id: String,
|
||||
path: &str,
|
||||
|
||||
@@ -473,7 +473,7 @@ pub struct VhostUserCommon {
|
||||
}
|
||||
|
||||
impl VhostUserCommon {
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
#[expect(clippy::too_many_arguments)]
|
||||
pub fn activate<T: VhostUserFrontendReqHandler>(
|
||||
&mut self,
|
||||
mem: GuestMemoryAtomic<GuestMemoryMmap>,
|
||||
|
||||
@@ -49,7 +49,7 @@ pub struct Net {
|
||||
|
||||
impl Net {
|
||||
/// Create a new vhost-user-net device
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
#[expect(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
id: String,
|
||||
mac_addr: MacAddr,
|
||||
|
||||
@@ -159,7 +159,7 @@ impl VhostUserHandle {
|
||||
Ok((acked_features, acked_protocol_features.bits()))
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
#[expect(clippy::too_many_arguments)]
|
||||
pub fn setup_vhost_user<S: VhostUserFrontendReqHandler>(
|
||||
&mut self,
|
||||
mem: &GuestMemoryMmap,
|
||||
@@ -352,7 +352,7 @@ impl VhostUserHandle {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
#[expect(clippy::too_many_arguments)]
|
||||
pub fn reinitialize_vhost_user<S: VhostUserFrontendReqHandler>(
|
||||
&mut self,
|
||||
mem: &GuestMemoryMmap,
|
||||
|
||||
Reference in New Issue
Block a user