mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
pci: reevaluate #[allow] attributes
Drop stale #[allow]s whose lints no longer fire and convert the rest to #[expect], which warns if they ever stop being needed. Part of #8326. Signed-off-by: Tushar Khatri <hello@tusharkhatri.in>
This commit is contained in:
committed by
Rob Bradford
parent
7042922e83
commit
9eff92fb4b
@@ -195,7 +195,6 @@ pub trait PciProgrammingInterface {
|
||||
|
||||
/// Types of PCI capabilities.
|
||||
#[derive(PartialEq, Eq, Copy, Clone)]
|
||||
#[allow(non_camel_case_types)]
|
||||
#[repr(u8)]
|
||||
pub enum PciCapabilityId {
|
||||
ListId = 0,
|
||||
@@ -532,7 +531,7 @@ pub enum Error {
|
||||
pub type Result<T> = result::Result<T, Error>;
|
||||
|
||||
impl PciConfiguration {
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
#[expect(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
vendor_id: u16,
|
||||
device_id: u16,
|
||||
|
||||
Reference in New Issue
Block a user