This commit is contained in:
HaoranYi 2022-05-03 09:57:15 -05:00 committed by GitHub
parent 755100dd7c
commit fd44198c0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ impl PartialOrd for BankSnapshotInfo {
} }
} }
// Order BankSnapshotInfo by slot (ascending), which practially is sorting chronologically // Order BankSnapshotInfo by slot (ascending), which practically is sorting chronologically
impl Ord for BankSnapshotInfo { impl Ord for BankSnapshotInfo {
fn cmp(&self, other: &Self) -> Ordering { fn cmp(&self, other: &Self) -> Ordering {
self.slot.cmp(&other.slot) self.slot.cmp(&other.slot)