Skip to content

Commit

Permalink
chore(deps): Update bitflags dependency to 2.2.1.
Browse files Browse the repository at this point in the history
This is a major version bump and requires some minor code changes.
  • Loading branch information
qwandor committed Apr 26, 2023
1 parent 43591bc commit a03d834
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
12 changes: 9 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clap_builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ bench = false

[dependencies]
clap_lex = { path = "../clap_lex", version = "0.4.0" }
bitflags = "1.2.0"
bitflags = "2.2.1"
unicase = { version = "2.6.0", optional = true }
strsim = { version = "0.10.0", optional = true }
anstream = { version = "0.3.0", optional = true }
Expand Down
2 changes: 2 additions & 0 deletions clap_builder/src/builder/app_settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ pub(crate) enum AppSettings {
}

bitflags! {
#[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[repr(transparent)]
struct Flags: u64 {
const SC_NEGATE_REQS = 1;
const SC_REQUIRED = 1 << 1;
Expand Down
2 changes: 2 additions & 0 deletions clap_builder/src/builder/arg_settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ pub(crate) enum ArgSettings {
}

bitflags! {
#[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[repr(transparent)]
struct Flags: u32 {
const REQUIRED = 1;
const GLOBAL = 1 << 3;
Expand Down

0 comments on commit a03d834

Please sign in to comment.