diff --git a/Cargo.toml b/Cargo.toml index d3e38db..5273c7d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0" readme = "README.md" [dependencies] -bitflags = "1.2.1" +bitflags = "2.9.1" itertools = { version = "0.14.0", default-features = false } [features] diff --git a/src/lib.rs b/src/lib.rs index e44fbd9..ba62186 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -132,6 +132,7 @@ pub mod argument { /// /// Definitions from /// [Wikipedia](https://en.wikipedia.org/wiki/Printf_format_string#Flags_field). + #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] pub struct Flags: u8 { /// Left-align the output of this placeholder. (The default is to /// right-align the output.)