summaryrefslogtreecommitdiff
path: root/src
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
parent2e5bc8b2038b6847baad1cf11b0697b5bc67a028 (diff)
downloadnix-1a89311dd5dde148d70709ce49913a283f46b39f.zip
Use repr(transparent) for bitflags.
Diffstat (limited to 'src')
-rw-r--r--src/macros.rs1
-rw-r--r--src/sys/statvfs.rs1
2 files changed, 1 insertions, 1 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 {
$(
diff --git a/src/sys/statvfs.rs b/src/sys/statvfs.rs
index c2c86624..35424e5e 100644
--- a/src/sys/statvfs.rs
+++ b/src/sys/statvfs.rs
@@ -12,7 +12,6 @@ use crate::{errno::Errno, NixPath, Result};
#[cfg(not(target_os = "redox"))]
libc_bitflags!(
/// File system mount Flags
- #[repr(C)]
#[derive(Default)]
pub struct FsFlags: c_ulong {
/// Read Only