Skip to content

Commit

Permalink
feat: Implement hash for Code (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Feb 21, 2022
1 parent e623562 commit 6bc7dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tonic/src/status.rs
Expand Up @@ -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,
Expand Down

0 comments on commit 6bc7dab

Please sign in to comment.