Remove unnecessary specialization for [u8]
This commit is contained in:
parent
ececbb2687
commit
a344c126d0
1 changed files with 0 additions and 7 deletions
|
@ -2298,13 +2298,6 @@ impl<A> SlicePartialOrd<A> for [A]
|
|||
}
|
||||
}
|
||||
|
||||
impl SlicePartialOrd<u8> for [u8] {
|
||||
#[inline]
|
||||
fn partial_compare(&self, other: &[u8]) -> Option<Ordering> {
|
||||
Some(SliceOrd::compare(self, other))
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
// intermediate trait for specialization of slice's Ord
|
||||
trait SliceOrd<B> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue