Skip to content

Commit 07ab853

Browse files
committed
Re-add impls for Eq,Ord and Hash for MmapXenFlags
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>
1 parent 427af4c commit 07ab853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mmap_xen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ impl Drop for MmapUnix {
432432
// Bit mask for the vhost-user xen mmap message.
433433
bitflags! {
434434
/// Flags for the Xen mmap message.
435-
#[derive(Copy, Clone, Debug)]
435+
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
436436
pub struct MmapXenFlags: u32 {
437437
/// Standard Unix memory mapping.
438438
const UNIX = 0x0;

0 commit comments

Comments
 (0)