diff --git a/pcid/src/driver_interface/mod.rs b/pcid/src/driver_interface/mod.rs index 6357ec5a92..4f7fd64703 100644 --- a/pcid/src/driver_interface/mod.rs +++ b/pcid/src/driver_interface/mod.rs @@ -85,11 +85,11 @@ pub enum PciFeature { MsiX, } impl PciFeature { - pub fn is_msi(&self) -> bool { - if let &Self::Msi = self { true } else { false } + pub fn is_msi(self) -> bool { + if let Self::Msi = self { true } else { false } } - pub fn is_msix(&self) -> bool { - if let &Self::MsiX = self { true } else { false } + pub fn is_msix(self) -> bool { + if let Self::MsiX = self { true } else { false } } } #[derive(Debug, Serialize, Deserialize)]