Mark lt as inline in PartialOrd
This commit is contained in:
parent
4480caf2a4
commit
1b7163358f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue