From 6bc7dab8e099c8ce226a6261e545d8d131c604f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Mon, 21 Feb 2022 20:45:15 +0100 Subject: [PATCH] feat: Implement hash for `Code` (#917) --- tonic/src/status.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tonic/src/status.rs b/tonic/src/status.rs index b50f6e55f..1d9d9d7c1 100644 --- a/tonic/src/status.rs +++ b/tonic/src/status.rs @@ -53,7 +53,7 @@ pub struct Status { /// These variants match the [gRPC status codes]. /// /// [gRPC status codes]: https://github.com/grpc/grpc/blob/master/doc/statuscodes.md#status-codes-and-their-use-in-grpc -#[derive(Clone, Copy, Debug, PartialEq, Eq)] +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] pub enum Code { /// The operation completed successfully. Ok = 0,