Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Derive equality, ordering traits for http::Status.
`PartialEq` when not derived results in `StructuralPartialEq` not being implemented. As this was the case for `http::Status`, matching against constants like `Status::Unauthorized` was not allowed. This commit replaces the manual implementations of equality traits (`PartialEq`, `Eq`) and ordering traits (`PartialOrd`, `Ord`) for `http::Status` with `#[derive]`. Resolves #2844.
- Loading branch information