Skip to content

Commit ce0c29c

Browse files
RUST-720 Use Timestamp's Ord implementation for ClusterTime (#315)
1 parent 8148ee1 commit ce0c29c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/client/session/cluster_time.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@ pub struct ClusterTime {
1818
}
1919

2020
impl std::cmp::Ord for ClusterTime {
21-
// TODO: RUST-390 use Timestamp's Ord impl.
2221
fn cmp(&self, other: &ClusterTime) -> std::cmp::Ordering {
23-
let lhs = (self.cluster_time.time, self.cluster_time.increment);
24-
let rhs = (other.cluster_time.time, other.cluster_time.increment);
25-
lhs.cmp(&rhs)
22+
self.cluster_time.cmp(&other.cluster_time)
2623
}
2724
}
2825

0 commit comments

Comments
 (0)