From e118de5f36b70c98e0acb4ed29f8f4617699d346 Mon Sep 17 00:00:00 2001 From: tottoto Date: Mon, 20 Mar 2023 20:36:03 +0900 Subject: [PATCH] Update to bitflags 2 (#341) --- tower-http/Cargo.toml | 2 +- tower-http/src/classify/grpc_errors_as_failures.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tower-http/Cargo.toml b/tower-http/Cargo.toml index 704ab0fb..99347997 100644 --- a/tower-http/Cargo.toml +++ b/tower-http/Cargo.toml @@ -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 = [] } diff --git a/tower-http/src/classify/grpc_errors_as_failures.rs b/tower-http/src/classify/grpc_errors_as_failures.rs index 46b183d7..056cec93 100644 --- a/tower-http/src/classify/grpc_errors_as_failures.rs +++ b/tower-http/src/classify/grpc_errors_as_failures.rs @@ -71,6 +71,7 @@ impl GrpcCode { } bitflags! { + #[derive(Debug, Clone, Copy)] pub(crate) struct GrpcCodeBitmask: u32 { const OK = 0b00000000000000001; const CANCELLED = 0b00000000000000010;