diff --git a/Cargo.toml b/Cargo.toml index 35c86a5..bf91c2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,9 +26,9 @@ alloc = [] all = ["alloc"] [dependencies] -bitflags = "1.3" arrayvec = { version = "0.7", default-features = false } log = { version = "0.4", default-features = false } +bitflags = "2.0" [dev-dependencies] -env_logger = "0.9" +env_logger = "0.10" diff --git a/src/header.rs b/src/header.rs index 0c92d15..975428d 100644 --- a/src/header.rs +++ b/src/header.rs @@ -253,6 +253,8 @@ 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. const SetUID = 0o4000;