Skip to content

Commit

Permalink
fix clippy warning after update to Rust 1.63
Browse files Browse the repository at this point in the history
Also reordered alphabetically some derives and
fixed a typo.

Signed-off-by: Laura Loghin <[email protected]>
  • Loading branch information
lauralt authored and gsserge committed Aug 30, 2022
1 parent a47cc15 commit 2cffa63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bus/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2cffa63

Please sign in to comment.