Upgrade bitflags to v2.4.2 (#8693)

This PR upgrades our [`bitflags`](https://crates.io/crates/bitflags)
dependency to v2.4.2.

This also fixes an error that was seen when running `clippy`:

```
error: &-masking with zero
  --> crates/fsevent/src/fsevent.rs:19:1
   |
19 | / bitflags! {
20 | |   #[repr(C)]
21 | |   pub struct StreamFlags: u32 {
22 | |     const NONE = 0x00000000;
...  |
46 | |   }
47 | | }
   | |_^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bad_bit_mask
   = note: `#[deny(clippy::bad_bit_mask)]` on by default
   = note: this error originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
```

Fixes #8681.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-03-01 21:07:39 -05:00 committed by GitHub
parent b2cc617886
commit 8c3ae8b264
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 38 additions and 36 deletions

64
Cargo.lock generated
View File

@ -106,7 +106,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc7ceabf6fc76511f616ca216b51398a2511f19ba9f71bcbd977999edff1b0d1"
dependencies = [
"base64 0.21.4",
"bitflags 2.4.1",
"bitflags 2.4.2",
"home",
"libc",
"log",
@ -1356,9 +1356,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
version = "2.4.1"
version = "2.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07"
checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf"
dependencies = [
"serde",
]
@ -1382,7 +1382,7 @@ source = "git+https://github.com/kvark/blade?rev=e9d93a4d41f3946a03ffb76136290d6
dependencies = [
"ash",
"ash-window",
"bitflags 2.4.1",
"bitflags 2.4.2",
"block",
"bytemuck",
"codespan-reporting",
@ -1643,7 +1643,7 @@ version = "0.12.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fba7adb4dd5aa98e5553510223000e7148f621165ec5f9acd7113f6ca4995298"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"log",
"polling 3.3.2",
"rustix 0.38.30",
@ -3471,7 +3471,7 @@ name = "feedback"
version = "0.1.0"
dependencies = [
"anyhow",
"bitflags 2.4.1",
"bitflags 2.4.2",
"client",
"db",
"editor",
@ -3775,7 +3775,7 @@ dependencies = [
name = "fsevent"
version = "2.0.2"
dependencies = [
"bitflags 1.3.2",
"bitflags 2.4.2",
"fsevent-sys 3.1.0",
"parking_lot 0.11.2",
"tempfile",
@ -4001,7 +4001,7 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "27d12c0aed7f1e24276a241aadc4cb8ea9f83000f34bc062b7cc2d51e3b0fabd"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"debugid",
"fxhash",
"serde",
@ -4153,7 +4153,7 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fbcd2dba93594b227a1f57ee09b8b9da8892c34d55aa332e034a228d0fe6a171"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"gpu-alloc-types",
]
@ -4174,7 +4174,7 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98ff03b468aa837d70984d55f5d3f846f6ec31fe34bbb97c4f85219caeee1ca4"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
]
[[package]]
@ -5773,7 +5773,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae585df4b6514cf8842ac0f1ab4992edc975892704835b549cf818dc0191249e"
dependencies = [
"bit-set",
"bitflags 2.4.1",
"bitflags 2.4.2",
"codespan-reporting",
"hexf-parse",
"indexmap 2.0.0",
@ -5910,7 +5910,7 @@ version = "0.27.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"cfg-if 1.0.0",
"libc",
]
@ -5964,7 +5964,7 @@ version = "6.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6205bd8bb1e454ad2e27422015fb5e4f2bcc7e08fa8f27058670d208324a4d2d"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"crossbeam-channel",
"filetime",
"fsevent-sys 4.1.0",
@ -6279,7 +6279,7 @@ version = "0.10.57"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bac25ee399abb46215765b1cb35bc0212377e58a061560d8b29b024fd0430e7c"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"cfg-if 1.0.0",
"foreign-types 0.3.2",
"libc",
@ -7185,7 +7185,7 @@ version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dce76ce678ffc8e5675b22aa1405de0b7037e2fdf8913fea40d1926c6fe1e6e7"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"memchr",
"unicase",
]
@ -7805,7 +7805,7 @@ version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "549b9d036d571d42e6e85d1c1425e2ac83491075078ca9a15be021c56b1641f2"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"fallible-iterator 0.2.0",
"fallible-streaming-iterator",
"hashlink",
@ -7905,7 +7905,7 @@ version = "0.38.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "322394588aaf33c24007e8bb3238ee3e4c5c09c084ab32bc73890b99ff326bca"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"errno",
"itoa",
"libc",
@ -8233,7 +8233,7 @@ name = "search"
version = "0.1.0"
dependencies = [
"anyhow",
"bitflags 1.3.2",
"bitflags 2.4.2",
"client",
"collections",
"editor",
@ -8949,7 +8949,7 @@ dependencies = [
"atoi",
"base64 0.21.4",
"bigdecimal",
"bitflags 2.4.1",
"bitflags 2.4.2",
"byteorder",
"bytes 1.5.0",
"chrono",
@ -8996,7 +8996,7 @@ dependencies = [
"atoi",
"base64 0.21.4",
"bigdecimal",
"bitflags 2.4.1",
"bitflags 2.4.2",
"byteorder",
"chrono",
"crc",
@ -9324,7 +9324,7 @@ version = "0.26.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0682e006dd35771e392a6623ac180999a9a854b1d4a6c12fb2e804941c2b1f58"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"cap-fs-ext",
"cap-std",
"fd-lock",
@ -9918,7 +9918,7 @@ version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "61c5bb1d698276a2443e5ecfabc1008bf15a36c12e6a7176e7bf089ea9131140"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"bytes 1.5.0",
"futures-core",
"futures-util",
@ -10896,7 +10896,7 @@ version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "40eb22ae96f050e0c0d6f7ce43feeae26c348fc4dea56928ca81537cfaa6188b"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"cursor-icon",
"log",
"serde",
@ -10958,7 +10958,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "082a661fe31df4dbb34409f4835ad3d8ba65036bf74aaec9b21fde779978aba7"
dependencies = [
"anyhow",
"bitflags 2.4.1",
"bitflags 2.4.2",
"cap-fs-ext",
"cap-rand",
"cap-std",
@ -11083,7 +11083,7 @@ version = "0.121.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9dbe55c8f9d0dbd25d9447a5a889ff90c0cc3feaa7395310d3d826b2c703eaab"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"indexmap 2.0.0",
"semver",
]
@ -11383,7 +11383,7 @@ checksum = "8f7d9cfaf9f70e83a164f5d772e376fafa2d7b7b0ca2ef88f9bcaf8b2363a38b"
dependencies = [
"anyhow",
"async-trait",
"bitflags 2.4.1",
"bitflags 2.4.2",
"bytes 1.5.0",
"cap-fs-ext",
"cap-net-ext",
@ -11494,7 +11494,7 @@ version = "0.31.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "82fb96ee935c2cea6668ccb470fb7771f6215d1691746c2d896b447a00ad3f1f"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"rustix 0.38.30",
"wayland-backend",
"wayland-scanner",
@ -11506,7 +11506,7 @@ version = "0.31.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f81f365b8b4a97f422ac0e8737c438024b5951734506b0e1d775c73030561f4"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"wayland-backend",
"wayland-client",
"wayland-scanner",
@ -11621,7 +11621,7 @@ checksum = "454570f4fecadb881f0ba157e98b575a2850607a9eac79d8868f3ab70633f632"
dependencies = [
"anyhow",
"async-trait",
"bitflags 2.4.1",
"bitflags 2.4.2",
"thiserror",
"tracing",
"wasmtime",
@ -11964,7 +11964,7 @@ version = "0.36.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9643b83820c0cd246ecabe5fa454dd04ba4fa67996369466d0747472d337346"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"windows-sys 0.52.0",
]
@ -11983,7 +11983,7 @@ version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5408d742fcdf418b766f23b2393f0f4d9b10b72b7cd96d9525626943593e8cc0"
dependencies = [
"bitflags 2.4.1",
"bitflags 2.4.2",
"wit-bindgen-rust-macro",
]
@ -12031,7 +12031,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be60cd1b2ff7919305301d0c27528d4867bd793afe890ba3837743da9655d91b"
dependencies = [
"anyhow",
"bitflags 2.4.1",
"bitflags 2.4.2",
"indexmap 2.0.0",
"log",
"serde",

View File

@ -195,6 +195,7 @@ anyhow = "1.0.57"
async-compression = { version = "0.4", features = ["gzip", "futures-io"] }
async-tar = "0.4.2"
async-trait = "0.1"
bitflags = "2.4.2"
blade-graphics = { git = "https://github.com/kvark/blade", rev = "e9d93a4d41f3946a03ffb76136290d6ccf7f2b80" }
blade-macros = { git = "https://github.com/kvark/blade", rev = "e9d93a4d41f3946a03ffb76136290d6ccf7f2b80" }
blade-rwh = { package = "raw-window-handle", version = "0.5" }

View File

@ -13,7 +13,7 @@ test-support = []
[dependencies]
anyhow.workspace = true
bitflags = "2.4.1"
bitflags.workspace = true
client.workspace = true
db.workspace = true
editor.workspace = true

View File

@ -11,7 +11,7 @@ path = "src/fsevent.rs"
doctest = false
[dependencies]
bitflags = "1"
bitflags.workspace = true
parking_lot.workspace = true
[target.'cfg(target_os = "macos")'.dependencies]

View File

@ -17,6 +17,7 @@ pub struct Event {
// Synchronize with
// /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/Headers/FSEvents.h
bitflags! {
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
#[repr(C)]
pub struct StreamFlags: u32 {
const NONE = 0x00000000;

View File

@ -11,7 +11,7 @@ doctest = false
[dependencies]
anyhow.workspace = true
bitflags = "1"
bitflags.workspace = true
collections.workspace = true
editor.workspace = true
futures.workspace = true

View File

@ -41,7 +41,7 @@ actions!(
);
bitflags! {
#[derive(Default)]
#[derive(Debug, PartialEq, Eq, Clone, Copy, Default)]
pub struct SearchOptions: u8 {
const NONE = 0b000;
const WHOLE_WORD = 0b001;