summaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
authorAndrew Walbran <qwandor@google.com>2023-04-26 14:31:55 +0100
committerAndrew Walbran <qwandor@google.com>2023-05-22 10:57:39 +0100
commit1a89311dd5dde148d70709ce49913a283f46b39f (patch)
tree69d5d19529527cc4b47e4687eade1ae106f91aa5 /src/macros.rs
parent2e5bc8b2038b6847baad1cf11b0697b5bc67a028 (diff)
downloadnix-1a89311dd5dde148d70709ce49913a283f46b39f.zip
Use repr(transparent) for bitflags.
Diffstat (limited to 'src/macros.rs')
-rw-r--r--src/macros.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/macros.rs b/src/macros.rs
index 2d356441..adff2bc6 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -64,6 +64,7 @@ macro_rules! libc_bitflags {
) => {
::bitflags::bitflags! {
#[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
+ #[repr(transparent)]
$(#[$outer])*
pub struct $BitFlags: $T {
$(