Skip to content

Commit 75cf3e0

Browse files
Update bitflags to latest version
Note that bitflags v2 no longer automatically derives by default, so add a standard list of common derives.
1 parent 07f28eb commit 75cf3e0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0"
99
readme = "README.md"
1010

1111
[dependencies]
12-
bitflags = "1.2.1"
12+
bitflags = "2.9.1"
1313
itertools = { version = "0.14.0", default-features = false }
1414

1515
[features]

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ pub mod argument {
132132
///
133133
/// Definitions from
134134
/// [Wikipedia](https://en.wikipedia.org/wiki/Printf_format_string#Flags_field).
135+
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
135136
pub struct Flags: u8 {
136137
/// Left-align the output of this placeholder. (The default is to
137138
/// right-align the output.)

0 commit comments

Comments
 (0)