Skip to content

Commit e118de5

Browse files
authored
Update to bitflags 2 (#341)
1 parent 65e4dc3 commit e118de5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tower-http/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ keywords = ["io", "async", "futures", "service", "http"]
1313
rust-version = "1.56"
1414

1515
[dependencies]
16-
bitflags = "1.3.1"
16+
bitflags = "2.0.2"
1717
bytes = "1"
1818
futures-core = "0.3"
1919
futures-util = { version = "0.3.14", default_features = false, features = [] }

tower-http/src/classify/grpc_errors_as_failures.rs

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ impl GrpcCode {
7171
}
7272

7373
bitflags! {
74+
#[derive(Debug, Clone, Copy)]
7475
pub(crate) struct GrpcCodeBitmask: u32 {
7576
const OK = 0b00000000000000001;
7677
const CANCELLED = 0b00000000000000010;

0 commit comments

Comments
 (0)