mirror of
https://github.com/openharmony/third_party_rust_http.git
synced 2026-07-19 14:43:33 -04:00
Fix HeaderValue partial_cmp implementation.
Aka, I should make sure that I have no uncommitted changes before pushing and merging a PR.
This commit is contained in:
+1
-1
@@ -280,7 +280,7 @@ impl PartialOrd<HeaderValue> for str {
|
||||
|
||||
impl PartialOrd<HeaderValue> for [u8] {
|
||||
fn partial_cmp(&self, other: &HeaderValue) -> Option<cmp::Ordering> {
|
||||
self.as_bytes().partial_cmp(other.as_bytes())
|
||||
self.partial_cmp(other.as_bytes())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user