summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornickelc <constantin.nickel@gmail.com>2023-04-26 16:59:38 +0200
committerGitHub <noreply@github.com>2023-04-26 10:59:38 -0400
commit3e8d1bc9c4dad6499f4d9dd8bb6f0b966b33710e (patch)
tree646daea744f7426ad1eedc87cfc56f8644c266a0
parent7d9bfd308a8bff537f3d49677e1b3b586b5a5fe6 (diff)
Update `bitflags` to 2.2.1 (#1361)
The `Clone`, `Copy`, `Debug` and `PartialEq` traits are no longer derived automatically by the macro.
-rw-r--r--Cargo.lock22
-rw-r--r--Cargo.toml2
-rw-r--r--src/parse_style.rs1
3 files changed, 16 insertions, 9 deletions
diff --git a/Cargo.lock b/Cargo.lock
index dffb4b76..22cce757 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -124,6 +124,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
+name = "bitflags"
+version = "2.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "24a6904aef64d73cf10ab17ebace7befb918b82164785cb89907993be7f83813"
+
+[[package]]
name = "box_drawing"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -220,7 +226,7 @@ version = "4.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3d7ae14b20b94cb02149ed21a86c423859cbe18dc7ed69845cace50e52b40a5"
dependencies = [
- "bitflags",
+ "bitflags 1.3.2",
"clap_derive",
"clap_lex",
"is-terminal",
@@ -633,7 +639,7 @@ dependencies = [
"ansi_term",
"atty",
"bat",
- "bitflags",
+ "bitflags 2.2.1",
"box_drawing",
"bytelines",
"chrono",
@@ -668,7 +674,7 @@ version = "0.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ccf7f68c2995f392c49fffb4f95ae2c873297830eb25c6bc4c114ce8f4562acc"
dependencies = [
- "bitflags",
+ "bitflags 1.3.2",
"libc",
"libgit2-sys",
"log",
@@ -927,7 +933,7 @@ version = "0.26.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfdda3d196821d6af13126e40375cdf7da646a96114af134d5f417a9a1dc8e1a"
dependencies = [
- "bitflags",
+ "bitflags 1.3.2",
"cfg-if",
"libc",
"static_assertions",
@@ -973,7 +979,7 @@ version = "6.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c4b31c8722ad9171c6d77d3557db078cab2bd50afcc9d09c8b315c59df8ca4f"
dependencies = [
- "bitflags",
+ "bitflags 1.3.2",
"libc",
"once_cell",
"onig_sys",
@@ -1186,7 +1192,7 @@ version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
dependencies = [
- "bitflags",
+ "bitflags 1.3.2",
]
[[package]]
@@ -1238,7 +1244,7 @@ version = "0.36.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd5c6ff11fecd55b40746d1995a02f2eb375bf8c00d192d521ee09f42bef37bc"
dependencies = [
- "bitflags",
+ "bitflags 1.3.2",
"errno",
"io-lifetimes",
"libc",
@@ -1388,7 +1394,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c6c454c27d9d7d9a84c7803aaa3c50cd088d2906fe3c6e42da3209aa623576a8"
dependencies = [
"bincode",
- "bitflags",
+ "bitflags 1.3.2",
"flate2",
"fnv",
"lazy_static",
diff --git a/Cargo.toml b/Cargo.toml
index 69567972..a5dcb97e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,7 +21,7 @@ chrono-humanize = "0.2.2"
ansi_colours = "1.2.1"
ansi_term = "0.12.1"
atty = "0.2.14"
-bitflags = "1.3.2"
+bitflags = "2.2.1"
box_drawing = "0.1.2"
bytelines = "2.4.0"
clap = { version = "4.1.8", features = ["derive", "help", "usage", "error-context", "wrap_help"] }
diff --git a/src/parse_style.rs b/src/parse_style.rs
index f6e6d251..30106ba3 100644
--- a/src/parse_style.rs
+++ b/src/parse_style.rs
@@ -66,6 +66,7 @@ impl Style {
}
bitflags! {
+ #[derive(Clone, Copy, Debug, PartialEq)]
struct DecorationAttributes: u8 {
const EMPTY = 0b00000000;
const BOX = 0b00000001;