Mark lt as inline in PartialOrd

This commit is contained in:
Ray Clanan 2014-10-18 11:49:33 -04:00
parent 4480caf2a4
commit 1b7163358f
1 changed files with 1 additions and 0 deletions

View File

@ -209,6 +209,7 @@ pub trait PartialOrd: PartialEq {
fn partial_cmp(&self, other: &Self) -> Option<Ordering>;
/// This method tests less than (for `self` and `other`) and is used by the `<` operator.
#[inline]
fn lt(&self, other: &Self) -> bool {
match self.partial_cmp(other) {
Some(Less) => true,