From 20083df4cc64f1b4e0a03ddf92ec731ff5cb7c44 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Wed, 10 May 2017 11:33:45 -0700 Subject: [PATCH] Fix HeaderValue partial_cmp implementation. Aka, I should make sure that I have no uncommitted changes before pushing and merging a PR. --- src/header/value.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/header/value.rs b/src/header/value.rs index 6b0179e..31ad888 100644 --- a/src/header/value.rs +++ b/src/header/value.rs @@ -280,7 +280,7 @@ impl PartialOrd for str { impl PartialOrd for [u8] { fn partial_cmp(&self, other: &HeaderValue) -> Option { - self.as_bytes().partial_cmp(other.as_bytes()) + self.partial_cmp(other.as_bytes()) } }