Skip to content

Commit

Permalink
Re-add impls for Eq,Ord and Hash for MmapXenFlags
Browse files Browse the repository at this point in the history
With the upgrade to the 2.0 series of bitflags, these were no longer
automatically derived.

Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
  • Loading branch information
roypat committed Oct 11, 2023
1 parent 427af4c commit 07ab853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mmap_xen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ impl Drop for MmapUnix {
// Bit mask for the vhost-user xen mmap message.
bitflags! {
/// Flags for the Xen mmap message.
#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct MmapXenFlags: u32 {
/// Standard Unix memory mapping.
const UNIX = 0x0;
Expand Down

0 comments on commit 07ab853

Please sign in to comment.