Skip to content

Commit e58cf64

Browse files
Silence clippy lint about "incorrect" PartialOrd impl
1 parent b9c37f2 commit e58cf64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/system/time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl Eq for Time {}
5151

5252
impl PartialOrd for Time {
5353
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
54-
self.0.partial_cmp(&other.0)
54+
Some(self.cmp(other))
5555
}
5656
}
5757

0 commit comments

Comments
 (0)