diff --git a/arch/src/x86_64/mod.rs b/arch/src/x86_64/mod.rs index 3bdc01ee7..a7d97aabc 100644 --- a/arch/src/x86_64/mod.rs +++ b/arch/src/x86_64/mod.rs @@ -210,7 +210,6 @@ impl From for super::Error { } } -#[allow(clippy::upper_case_acronyms)] #[derive(Copy, Clone, Debug)] pub enum CpuidReg { EAX, diff --git a/hypervisor/src/arch/x86/mod.rs b/hypervisor/src/arch/x86/mod.rs index be414833c..22c287d0c 100644 --- a/hypervisor/src/arch/x86/mod.rs +++ b/hypervisor/src/arch/x86/mod.rs @@ -26,7 +26,6 @@ pub const MTRR_MEM_TYPE_WB: u64 = 0x6; pub const NUM_IOAPIC_PINS: usize = 24; // X86 Exceptions -#[allow(clippy::upper_case_acronyms)] #[derive(Clone, Debug)] pub enum Exception { DE = 0, // Divide Error diff --git a/hypervisor/src/kvm/aarch64/gic/mod.rs b/hypervisor/src/kvm/aarch64/gic/mod.rs index d90b23378..eaedfa261 100644 --- a/hypervisor/src/kvm/aarch64/gic/mod.rs +++ b/hypervisor/src/kvm/aarch64/gic/mod.rs @@ -243,7 +243,6 @@ impl KvmGicV3Its { } /// Method to initialize the GIC device - #[allow(clippy::new_ret_no_self)] pub fn new(vm: &dyn Vm, config: VgicConfig) -> Result { // This is inside KVM module let vm = vm.as_any().downcast_ref::().expect("Wrong VM type?"); diff --git a/virtio-devices/src/vsock/packet.rs b/virtio-devices/src/vsock/packet.rs index a27b15d79..d9bc582c5 100644 --- a/virtio-devices/src/vsock/packet.rs +++ b/virtio-devices/src/vsock/packet.rs @@ -436,7 +436,6 @@ mod tests { } #[test] - #[allow(clippy::cognitive_complexity)] fn test_tx_packet_assembly() { // Test case: successful TX packet assembly. { @@ -581,7 +580,6 @@ mod tests { } #[test] - #[allow(clippy::cognitive_complexity)] fn test_packet_hdr_accessors() { const SRC_CID: u64 = 1; const DST_CID: u64 = 2; diff --git a/vmm/src/api/mod.rs b/vmm/src/api/mod.rs index 42b04871d..5b0c3847e 100644 --- a/vmm/src/api/mod.rs +++ b/vmm/src/api/mod.rs @@ -232,7 +232,6 @@ pub enum ApiResponsePayload { /// This is the response sent by the VMM API server through the mpsc channel. pub type ApiResponse = std::result::Result; -#[allow(clippy::large_enum_variant)] #[derive(Debug)] pub enum ApiRequest { /// Create the virtual machine. This request payload is a VM configuration diff --git a/vmm/src/gdb.rs b/vmm/src/gdb.rs index 50634631d..a96d7d061 100644 --- a/vmm/src/gdb.rs +++ b/vmm/src/gdb.rs @@ -435,7 +435,6 @@ impl run_blocking::BlockingEventLoop for GdbEventLoop { type Connection = Box>; type StopReason = MultiThreadStopReason; - #[allow(clippy::type_complexity)] fn wait_for_stop_reason( target: &mut Self::Target, conn: &mut Self::Connection, diff --git a/vmm/src/lib.rs b/vmm/src/lib.rs index 7cd434f3a..cab7a58c0 100644 --- a/vmm/src/lib.rs +++ b/vmm/src/lib.rs @@ -82,7 +82,6 @@ type GuestRegionMmap = vm_memory::GuestRegionMmap; /// Errors associated with VMM management #[derive(Debug, Error)] -#[allow(clippy::large_enum_variant)] pub enum Error { /// API request receive error #[error("Error receiving API request: {0}")]