fix: added fn keyword where missing in PartialOrd

This commit is contained in:
0xflotus 2020-12-27 05:08:41 +01:00 committed by GitHub
parent 301da04cd7
commit b9a72bd581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ pub trait PartialOrd {
}
}
le(&self, other: &Self) -> bool {
fn le(&self, other: &Self) -> bool {
match self.partial_cmp(other) {
Some(Less) | Some(Equal) => true,
_ => false,
@ -57,7 +57,7 @@ pub trait PartialOrd {
}
}
ge(&self, other: &Self) -> bool {
fn ge(&self, other: &Self) -> bool {
match self.partial_cmp(other) {
Some(Greater) | Some(Equal) => true,
_ => false,