feat: Implement hash for Code (#917)

This commit is contained in:
Linus Färnstrand
2022-02-21 14:45:15 -05:00
committed by GitHub
parent e6235623c4
commit 6bc7dab8e0
+1 -1
View File
@@ -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,