Skip to content

Commit a344c12

Browse files
author
Stjepan Glavina
committed
Remove unnecessary specialization for [u8]
1 parent ececbb2 commit a344c12

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/libcore/slice.rs

-7
Original file line numberDiff line numberDiff line change
@@ -2298,13 +2298,6 @@ impl<A> SlicePartialOrd<A> for [A]
22982298
}
22992299
}
23002300

2301-
impl SlicePartialOrd<u8> for [u8] {
2302-
#[inline]
2303-
fn partial_compare(&self, other: &[u8]) -> Option<Ordering> {
2304-
Some(SliceOrd::compare(self, other))
2305-
}
2306-
}
2307-
23082301
#[doc(hidden)]
23092302
// intermediate trait for specialization of slice's Ord
23102303
trait SliceOrd<B> {

0 commit comments

Comments
 (0)