aboutsummaryrefslogtreecommitdiff
path: root/src/bytes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytes.rs')
-rw-r--r--src/bytes.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bytes.rs b/src/bytes.rs
index 35a3c75..0ca6138 100644
--- a/src/bytes.rs
+++ b/src/bytes.rs
@@ -626,7 +626,7 @@ impl PartialEq<Bytes> for [u8] {
impl PartialOrd<Bytes> for [u8] {
fn partial_cmp(&self, other: &Bytes) -> Option<cmp::Ordering> {
- other.partial_cmp(self)
+ <[u8] as PartialOrd<[u8]>>::partial_cmp(self, other)
}
}
@@ -650,7 +650,7 @@ impl PartialEq<Bytes> for str {
impl PartialOrd<Bytes> for str {
fn partial_cmp(&self, other: &Bytes) -> Option<cmp::Ordering> {
- other.partial_cmp(self)
+ <[u8] as PartialOrd<[u8]>>::partial_cmp(self.as_bytes(), other)
}
}
@@ -674,7 +674,7 @@ impl PartialEq<Bytes> for Vec<u8> {
impl PartialOrd<Bytes> for Vec<u8> {
fn partial_cmp(&self, other: &Bytes) -> Option<cmp::Ordering> {
- other.partial_cmp(self)
+ <[u8] as PartialOrd<[u8]>>::partial_cmp(self, other)
}
}
@@ -698,7 +698,7 @@ impl PartialEq<Bytes> for String {
impl PartialOrd<Bytes> for String {
fn partial_cmp(&self, other: &Bytes) -> Option<cmp::Ordering> {
- other.partial_cmp(self)
+ <[u8] as PartialOrd<[u8]>>::partial_cmp(self.as_bytes(), other)
}
}
@@ -710,7 +710,7 @@ impl PartialEq<Bytes> for &[u8] {
impl PartialOrd<Bytes> for &[u8] {
fn partial_cmp(&self, other: &Bytes) -> Option<cmp::Ordering> {
- other.partial_cmp(self)
+ <[u8] as PartialOrd<[u8]>>::partial_cmp(self, other)
}
}
@@ -722,7 +722,7 @@ impl PartialEq<Bytes> for &str {
impl PartialOrd<Bytes> for &str {
fn partial_cmp(&self, other: &Bytes) -> Option<cmp::Ordering> {
- other.partial_cmp(self)
+ <[u8] as PartialOrd<[u8]>>::partial_cmp(self.as_bytes(), other)
}
}