Skip to content

Commit

Permalink
Remove unnecessary specialization for [u8]
Browse files Browse the repository at this point in the history
  • Loading branch information
Stjepan Glavina committed Feb 8, 2017
1 parent ececbb2 commit a344c12
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/libcore/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit a344c12

Please sign in to comment.