Skip to content

Commit

Permalink
address lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jscatena88 committed Jun 27, 2024
1 parent 3cc64ab commit 4ffbadb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/codec/meta/vector_clock/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,7 @@ impl From<u64> for Snapshot {

impl PartialOrd for Snapshot {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
if self.0 < WRAP_THRESHOLD || other.0 < WRAP_THRESHOLD {
self.0
.wrapping_add(WRAP_THRESHOLD)
.partial_cmp(&other.0.wrapping_add(WRAP_THRESHOLD))
} else {
self.0.partial_cmp(&other.0)
}
Some(self.cmp(other))
}
}

Expand Down

0 comments on commit 4ffbadb

Please sign in to comment.