diff options
author | Andrew Walbran <qwandor@google.com> | 2023-04-26 14:31:55 +0100 |
---|---|---|
committer | Andrew Walbran <qwandor@google.com> | 2023-05-22 10:57:39 +0100 |
commit | 1a89311dd5dde148d70709ce49913a283f46b39f (patch) | |
tree | 69d5d19529527cc4b47e4687eade1ae106f91aa5 /src/macros.rs | |
parent | 2e5bc8b2038b6847baad1cf11b0697b5bc67a028 (diff) | |
download | nix-1a89311dd5dde148d70709ce49913a283f46b39f.zip |
Use repr(transparent) for bitflags.
Diffstat (limited to 'src/macros.rs')
-rw-r--r-- | src/macros.rs | 1 |
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 { $( |