mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
misc: Remove unnecessary clippy directives
Clippy passes fine without these. Signed-off-by: Rafael Mendonca <rafaelmendsr@gmail.com>
This commit is contained in:
parent
5dbc72948f
commit
6379074264
@ -210,7 +210,6 @@ impl From<Error> for super::Error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::upper_case_acronyms)]
|
|
||||||
#[derive(Copy, Clone, Debug)]
|
#[derive(Copy, Clone, Debug)]
|
||||||
pub enum CpuidReg {
|
pub enum CpuidReg {
|
||||||
EAX,
|
EAX,
|
||||||
|
@ -26,7 +26,6 @@ pub const MTRR_MEM_TYPE_WB: u64 = 0x6;
|
|||||||
pub const NUM_IOAPIC_PINS: usize = 24;
|
pub const NUM_IOAPIC_PINS: usize = 24;
|
||||||
|
|
||||||
// X86 Exceptions
|
// X86 Exceptions
|
||||||
#[allow(clippy::upper_case_acronyms)]
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub enum Exception {
|
pub enum Exception {
|
||||||
DE = 0, // Divide Error
|
DE = 0, // Divide Error
|
||||||
|
@ -243,7 +243,6 @@ impl KvmGicV3Its {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Method to initialize the GIC device
|
/// Method to initialize the GIC device
|
||||||
#[allow(clippy::new_ret_no_self)]
|
|
||||||
pub fn new(vm: &dyn Vm, config: VgicConfig) -> Result<KvmGicV3Its> {
|
pub fn new(vm: &dyn Vm, config: VgicConfig) -> Result<KvmGicV3Its> {
|
||||||
// This is inside KVM module
|
// This is inside KVM module
|
||||||
let vm = vm.as_any().downcast_ref::<KvmVm>().expect("Wrong VM type?");
|
let vm = vm.as_any().downcast_ref::<KvmVm>().expect("Wrong VM type?");
|
||||||
|
@ -436,7 +436,6 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[allow(clippy::cognitive_complexity)]
|
|
||||||
fn test_tx_packet_assembly() {
|
fn test_tx_packet_assembly() {
|
||||||
// Test case: successful TX packet assembly.
|
// Test case: successful TX packet assembly.
|
||||||
{
|
{
|
||||||
@ -581,7 +580,6 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[allow(clippy::cognitive_complexity)]
|
|
||||||
fn test_packet_hdr_accessors() {
|
fn test_packet_hdr_accessors() {
|
||||||
const SRC_CID: u64 = 1;
|
const SRC_CID: u64 = 1;
|
||||||
const DST_CID: u64 = 2;
|
const DST_CID: u64 = 2;
|
||||||
|
@ -232,7 +232,6 @@ pub enum ApiResponsePayload {
|
|||||||
/// This is the response sent by the VMM API server through the mpsc channel.
|
/// This is the response sent by the VMM API server through the mpsc channel.
|
||||||
pub type ApiResponse = std::result::Result<ApiResponsePayload, ApiError>;
|
pub type ApiResponse = std::result::Result<ApiResponsePayload, ApiError>;
|
||||||
|
|
||||||
#[allow(clippy::large_enum_variant)]
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum ApiRequest {
|
pub enum ApiRequest {
|
||||||
/// Create the virtual machine. This request payload is a VM configuration
|
/// Create the virtual machine. This request payload is a VM configuration
|
||||||
|
@ -435,7 +435,6 @@ impl run_blocking::BlockingEventLoop for GdbEventLoop {
|
|||||||
type Connection = Box<dyn ConnectionExt<Error = std::io::Error>>;
|
type Connection = Box<dyn ConnectionExt<Error = std::io::Error>>;
|
||||||
type StopReason = MultiThreadStopReason<ArchUsize>;
|
type StopReason = MultiThreadStopReason<ArchUsize>;
|
||||||
|
|
||||||
#[allow(clippy::type_complexity)]
|
|
||||||
fn wait_for_stop_reason(
|
fn wait_for_stop_reason(
|
||||||
target: &mut Self::Target,
|
target: &mut Self::Target,
|
||||||
conn: &mut Self::Connection,
|
conn: &mut Self::Connection,
|
||||||
|
@ -82,7 +82,6 @@ type GuestRegionMmap = vm_memory::GuestRegionMmap<AtomicBitmap>;
|
|||||||
|
|
||||||
/// Errors associated with VMM management
|
/// Errors associated with VMM management
|
||||||
#[derive(Debug, Error)]
|
#[derive(Debug, Error)]
|
||||||
#[allow(clippy::large_enum_variant)]
|
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
/// API request receive error
|
/// API request receive error
|
||||||
#[error("Error receiving API request: {0}")]
|
#[error("Error receiving API request: {0}")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user