Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manually implement Ord for HTTPVersion
As `Ord` requires a full order relationship, it makes little sense to implement `PartialOrd` ourselves and then derive `Ord`, doing so might even result in unexpected behaviour if the implementation of the derive changes underneath us. Here we move our comparison logic into the `impl Ord` and call that from our `impl PartialOrd`.
- Loading branch information