Skip to content

Commit 4c05dfb

Browse files
authored
Merge pull request #4771 from nicholasbishop/bishop-update-bitflags
chore: Update bitflags dep to 2.0
2 parents 9aee6d3 + 6878a19 commit 4c05dfb

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

Cargo.lock

+9-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ bench = false
101101
[dependencies]
102102
clap_derive = { path = "./clap_derive", version = "=4.1.9", optional = true }
103103
clap_lex = { path = "./clap_lex", version = "0.3.0" }
104-
bitflags = "1.2.0"
104+
bitflags = "2.0.0"
105105
unicase = { version = "2.6.0", optional = true }
106106
strsim = { version = "0.10.0", optional = true }
107107
is-terminal = { version = "0.4.1", optional = true }

src/builder/app_settings.rs

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ pub(crate) enum AppSettings {
6363
}
6464

6565
bitflags! {
66+
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
6667
struct Flags: u64 {
6768
const SC_NEGATE_REQS = 1;
6869
const SC_REQUIRED = 1 << 1;

src/builder/arg_settings.rs

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ pub(crate) enum ArgSettings {
4949
}
5050

5151
bitflags! {
52+
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
5253
struct Flags: u32 {
5354
const REQUIRED = 1;
5455
const GLOBAL = 1 << 3;

0 commit comments

Comments
 (0)