Merge pull request #615 from havarnov/impl-hash-for-statuscode
feat(status): implement `Hash` for `StatusCode`
This commit is contained in:
@@ -28,7 +28,7 @@ use std::cmp::Ordering;
|
||||
/// Registry](http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) which is
|
||||
/// the source for this enum (with one exception, 418 I'm a teapot, which is
|
||||
/// inexplicably not in the register).
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Hash)]
|
||||
pub enum StatusCode {
|
||||
/// 100 Continue
|
||||
/// [[RFC7231, Section 6.2.1](https://tools.ietf.org/html/rfc7231#section-6.2.1)]
|
||||
|
||||
Reference in New Issue
Block a user