Skip to content

Commit 1a89311

Browse files
committed
Use repr(transparent) for bitflags.
1 parent 2e5bc8b commit 1a89311

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/macros.rs

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ macro_rules! libc_bitflags {
6464
) => {
6565
::bitflags::bitflags! {
6666
#[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
67+
#[repr(transparent)]
6768
$(#[$outer])*
6869
pub struct $BitFlags: $T {
6970
$(

src/sys/statvfs.rs

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use crate::{errno::Errno, NixPath, Result};
1212
#[cfg(not(target_os = "redox"))]
1313
libc_bitflags!(
1414
/// File system mount Flags
15-
#[repr(C)]
1615
#[derive(Default)]
1716
pub struct FsFlags: c_ulong {
1817
/// Read Only

0 commit comments

Comments
 (0)