From ff7773044c8d8d79844f2a147ee7f0c030a0d507 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Fri, 22 Jul 2022 11:22:58 +0000 Subject: [PATCH] tree-wide: drop some unneeded allow clauses Signed-off-by: Wei Liu --- arch/src/x86_64/mod.rs | 2 +- arch/src/x86_64/smbios.rs | 1 - hypervisor/src/arch/x86/mod.rs | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/src/x86_64/mod.rs b/arch/src/x86_64/mod.rs index afa489b9d..d0ab6f298 100644 --- a/arch/src/x86_64/mod.rs +++ b/arch/src/x86_64/mod.rs @@ -202,7 +202,7 @@ impl From for super::Error { } } -#[allow(dead_code, clippy::upper_case_acronyms)] +#[allow(clippy::upper_case_acronyms)] #[derive(Copy, Clone, Debug)] pub enum CpuidReg { EAX, diff --git a/arch/src/x86_64/smbios.rs b/arch/src/x86_64/smbios.rs index d3e1b2e56..cf5eb44a5 100644 --- a/arch/src/x86_64/smbios.rs +++ b/arch/src/x86_64/smbios.rs @@ -15,7 +15,6 @@ use std::slice; use vm_memory::ByteValued; use vm_memory::{Address, Bytes, GuestAddress}; -#[allow(unused_variables)] #[derive(Debug)] pub enum Error { /// There was too little guest memory to store the entire SMBIOS table. diff --git a/hypervisor/src/arch/x86/mod.rs b/hypervisor/src/arch/x86/mod.rs index 68528e2f0..491cd6c31 100644 --- a/hypervisor/src/arch/x86/mod.rs +++ b/hypervisor/src/arch/x86/mod.rs @@ -13,7 +13,6 @@ pub mod emulator; pub mod gdt; -#[allow(non_upper_case_globals)] #[allow(non_camel_case_types)] #[allow(non_snake_case)] #[allow(non_upper_case_globals)] @@ -27,7 +26,7 @@ pub const MTRR_MEM_TYPE_WB: u64 = 0x6; pub const NUM_IOAPIC_PINS: usize = 24; // X86 Exceptions -#[allow(dead_code, clippy::upper_case_acronyms)] +#[allow(clippy::upper_case_acronyms)] #[derive(Clone, Debug)] pub enum Exception { DE = 0, // Divide Error