Browse Source

Update bitflags to latest version

Note that bitflags v2 no longer automatically derives by default, so add
a standard list of common derives.
Nicholas Bishop 1 month ago
parent
commit
75cf3e09e1
2 changed files with 2 additions and 1 deletions
  1. 1 1
      Cargo.toml
  2. 1 0
      src/lib.rs

+ 1 - 1
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]

+ 1 - 0
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.)