Skip to content

Commit 6bc7dab

Browse files
authored
feat: Implement hash for Code (#917)
1 parent e623562 commit 6bc7dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tonic/src/status.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub struct Status {
5353
/// These variants match the [gRPC status codes].
5454
///
5555
/// [gRPC status codes]: https://github.com/grpc/grpc/blob/master/doc/statuscodes.md#status-codes-and-their-use-in-grpc
56-
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
56+
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
5757
pub enum Code {
5858
/// The operation completed successfully.
5959
Ok = 0,

0 commit comments

Comments
 (0)