From c8c12e7c0b610da5415f1ba038787434c769b47f Mon Sep 17 00:00:00 2001 From: semiviral Date: Sun, 2 Apr 2023 06:15:42 -0500 Subject: [PATCH] `#[repr(transparent)]` for `ModeFlags` --- src/header.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/header.rs b/src/header.rs index 0eb4e8c..975428d 100644 --- a/src/header.rs +++ b/src/header.rs @@ -253,6 +253,7 @@ pub enum TypeFlag { bitflags::bitflags! { /// UNIX file permissions on octal format. + #[repr(transparent)] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct ModeFlags: u64 { /// Set UID on execution.