summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryant Mairs <bryantmairs@google.com>2017-12-05 19:09:47 -0800
committerBryant Mairs <bryantmairs@google.com>2017-12-10 20:46:41 -0800
commit75e798f1790a47c8792b746b1602d4abcc3ca81f (patch)
tree2c9dec7da48cbf9d69e60f45c1dead9f30839a7d
parentb957a7a801635cbf5b7b4f8bae67108a7117e0fd (diff)
downloadnix-75e798f1790a47c8792b746b1602d4abcc3ca81f.zip
Expand derives for all libc_bitflags! use
-rw-r--r--src/macros.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/macros.rs b/src/macros.rs
index 15f7505c..3d1b0e4b 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -90,7 +90,7 @@ macro_rules! libc_enum {
}
) => {
$($attrs)*
- #[derive(Clone, Copy, Debug, PartialEq, Eq)]
+ #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
enum $BitFlags {
$($entries)*
}
@@ -106,7 +106,7 @@ macro_rules! libc_enum {
}
) => {
$($attrs)*
- #[derive(Clone, Copy, Debug, PartialEq, Eq)]
+ #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum $BitFlags {
$($entries)*
}