diff --git a/detcore/Cargo.toml b/detcore/Cargo.toml index 264c806..29d41ca 100644 --- a/detcore/Cargo.toml +++ b/detcore/Cargo.toml @@ -30,7 +30,7 @@ path = "tests/time/mod.rs" [dependencies] anyhow = "1.0.75" async-trait = "0.1.71" -bitflags = "1.3" +bitflags = "2.4" chrono = { version = "0.4", features = ["clock", "serde", "std"], default-features = false } clap = { version = "3.2.25", features = ["derive", "env", "regex", "unicode", "wrap_help"] } detcore-model = { version = "0.0.0", path = "../detcore-model" } diff --git a/detcore/src/stat.rs b/detcore/src/stat.rs index a236ccb..f7d60c6 100644 --- a/detcore/src/stat.rs +++ b/detcore/src/stat.rs @@ -17,7 +17,7 @@ use serde::Serialize; bitflags! { /// stx_attributes from statx, see linux/stat.h - #[derive(Serialize, Deserialize)] + #[derive(Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Clone, Copy)] pub struct StatxAttributes: u64 { /// [I] File is compressed by the fs const STATX_ATTR_COMPRESSED = 0x4;