diff --git a/src/bus/mod.rs b/src/bus/mod.rs index cfe39ba..8ab64ab 100644 --- a/src/bus/mod.rs +++ b/src/bus/mod.rs @@ -22,7 +22,7 @@ pub use address::{MmioAddress, MmioAddressOffset, PioAddress, PioAddressOffset}; pub use range::{BusRange, MmioRange, PioRange}; /// Errors encountered during bus operations. -#[derive(Debug, PartialEq)] +#[derive(Debug, Eq, PartialEq)] pub enum Error { /// No device is associated with the specified address or range. DeviceNotFound, diff --git a/src/resources.rs b/src/resources.rs index 8a74ea8..1a79d7b 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -107,8 +107,8 @@ impl ResourceConstraint { } } -/// Type of Message Singaled Interrupt -#[derive(Copy, Clone, PartialEq)] +/// Type of Message Signaled Interrupt +#[derive(Clone, Copy, Eq, PartialEq)] pub enum MsiIrqType { /// PCI MSI IRQ numbers. PciMsi,