Skip to content

Commit 1b71633

Browse files
committed
Mark lt as inline in PartialOrd
1 parent 4480caf commit 1b71633

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/cmp.rs

+1
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ pub trait PartialOrd: PartialEq {
209209
fn partial_cmp(&self, other: &Self) -> Option<Ordering>;
210210

211211
/// This method tests less than (for `self` and `other`) and is used by the `<` operator.
212+
#[inline]
212213
fn lt(&self, other: &Self) -> bool {
213214
match self.partial_cmp(other) {
214215
Some(Less) => true,

0 commit comments

Comments
 (0)