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

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;