Skip to content

Commit

Permalink
build: Bump bitflags to 2.4.1
Browse files Browse the repository at this point in the history
This is resolve the following clippy error:

warning: &-masking with zero
  --> devices/src/lib.rs:26:1
   |
26 | / bitflags! {
27 | |     pub struct AcpiNotificationFlags: u8 {
28 | |         const NO_DEVICES_CHANGED = 0;
29 | |         const CPU_DEVICES_CHANGED = 0b1;
...  |
33 | |     }
34 | | }
   | |_^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bad_bit_mask
   = note: `#[warn(clippy::bad_bit_mask)]` on by default
   = note: this warning 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)

Signed-off-by: Bo Chen <[email protected]>
  • Loading branch information
likebreath committed Jan 9, 2024
1 parent 67b702f commit 5c7465f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
28 changes: 17 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion devices/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
acpi_tables = { path = "../acpi_tables" }
anyhow = "1.0.66"
arch = { path = "../arch" }
bitflags = "1.3.2"
bitflags = "2.4.1"
byteorder = "1.4.3"
hypervisor = { path = "../hypervisor" }
libc = "0.2.138"
Expand Down
2 changes: 1 addition & 1 deletion vmm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ acpi_tables = { path = "../acpi_tables" }
anyhow = "1.0.66"
arc-swap = "1.5.1"
arch = { path = "../arch" }
bitflags = "1.3.2"
bitflags = "2.4.1"
block_util = { path = "../block_util" }
clap = "4.0.29"
devices = { path = "../devices" }
Expand Down

0 comments on commit 5c7465f

Please sign in to comment.