Skip to content

Commit

Permalink
Update to bitflags 2 (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Mar 20, 2023
1 parent 65e4dc3 commit e118de5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tower-http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ keywords = ["io", "async", "futures", "service", "http"]
rust-version = "1.56"

[dependencies]
bitflags = "1.3.1"
bitflags = "2.0.2"
bytes = "1"
futures-core = "0.3"
futures-util = { version = "0.3.14", default_features = false, features = [] }
Expand Down
1 change: 1 addition & 0 deletions tower-http/src/classify/grpc_errors_as_failures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ impl GrpcCode {
}

bitflags! {
#[derive(Debug, Clone, Copy)]
pub(crate) struct GrpcCodeBitmask: u32 {
const OK = 0b00000000000000001;
const CANCELLED = 0b00000000000000010;
Expand Down

0 comments on commit e118de5

Please sign in to comment.