From 6878a1911b2509b1fb2afbaee616f6257758af41 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Sat, 18 Mar 2023 12:35:17 -0400 Subject: [PATCH] chore: Update bitflags dep to 2.0 --- Cargo.lock | 12 +++++++++--- Cargo.toml | 2 +- src/builder/app_settings.rs | 1 + src/builder/arg_settings.rs | 1 + 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f62b58d3..92400f64 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -110,6 +110,12 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "bitflags" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5dd14596c0e5b954530d0e6f1fd99b89c03e313aa2086e8da4303701a09e1cf" + [[package]] name = "bumpalo" version = "3.11.0" @@ -167,7 +173,7 @@ version = "3.2.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "86447ad904c7fb335a790c9d7fe3d0d971dc523b8ccd1561a520de9a85302750" dependencies = [ - "bitflags", + "bitflags 1.3.2", "clap_lex 0.2.4", "indexmap", "textwrap", @@ -178,7 +184,7 @@ name = "clap" version = "4.1.10" dependencies = [ "backtrace", - "bitflags", + "bitflags 2.0.1", "clap_derive", "clap_lex 0.3.3", "humantime", @@ -772,7 +778,7 @@ version = "0.36.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb93e85278e08bb5788653183213d3a60fc242b10cb9be96586f5a73dcb67c23" dependencies = [ - "bitflags", + "bitflags 1.3.2", "errno", "io-lifetimes", "libc", diff --git a/Cargo.toml b/Cargo.toml index caae6674..d1266ee4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -101,7 +101,7 @@ bench = false [dependencies] clap_derive = { path = "./clap_derive", version = "=4.1.9", optional = true } clap_lex = { path = "./clap_lex", version = "0.3.0" } -bitflags = "1.2.0" +bitflags = "2.0.0" unicase = { version = "2.6.0", optional = true } strsim = { version = "0.10.0", optional = true } is-terminal = { version = "0.4.1", optional = true } diff --git a/src/builder/app_settings.rs b/src/builder/app_settings.rs index 7a9ff8c6..a531f57e 100644 --- a/src/builder/app_settings.rs +++ b/src/builder/app_settings.rs @@ -63,6 +63,7 @@ pub(crate) enum AppSettings { } bitflags! { + #[derive(Debug, Copy, Clone, PartialEq, Eq)] struct Flags: u64 { const SC_NEGATE_REQS = 1; const SC_REQUIRED = 1 << 1; diff --git a/src/builder/arg_settings.rs b/src/builder/arg_settings.rs index b8bc069c..6dd4d6c8 100644 --- a/src/builder/arg_settings.rs +++ b/src/builder/arg_settings.rs @@ -49,6 +49,7 @@ pub(crate) enum ArgSettings { } bitflags! { + #[derive(Debug, Copy, Clone, PartialEq, Eq)] struct Flags: u32 { const REQUIRED = 1; const GLOBAL = 1 << 3;