We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8148ee1 commit ce0c29cCopy full SHA for ce0c29c
src/client/session/cluster_time.rs
@@ -18,11 +18,8 @@ pub struct ClusterTime {
18
}
19
20
impl std::cmp::Ord for ClusterTime {
21
- // TODO: RUST-390 use Timestamp's Ord impl.
22
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)
+ self.cluster_time.cmp(&other.cluster_time)
26
27
28
0 commit comments