Skip to content

Commit 1d3a364

Browse files
authored
Merge pull request #87 from hatoo/statuscode-derive-hash
Derive `Hash` on `StatusCode`
2 parents 4801917 + 53a9e9a commit 1d3a364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/status_code.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::fmt::{self, Display};
55
/// As defined by [rfc7231 section 6](https://tools.ietf.org/html/rfc7231#section-6).
66
/// [Read more](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status)
77
#[repr(u16)]
8-
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
8+
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
99
pub enum StatusCode {
1010
/// 100 Continue
1111
///

0 commit comments

Comments
 (0)