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:
Tushar Khatri
2026-06-10 13:50:28 +00:00
committed by Rob Bradford
parent 7042922e83
commit 9eff92fb4b
4 changed files with 4 additions and 13 deletions

View File

@@ -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,