Remove count field from FragmentSummary

Sort anchors according to their 'full offset' (deleted + visible)
This commit is contained in:
Max Brunsfeld
2021-06-01 12:28:04 -07:00
parent e3c07942d5
commit dda9c6898b
2 changed files with 15 additions and 22 deletions
+2 -2
View File
@@ -67,8 +67,8 @@ impl Anchor {
bias: other_bias, ..
},
) => buffer
.fragment_ix_for_anchor(self)
.cmp(&buffer.fragment_ix_for_anchor(other))
.full_offset_for_anchor(self)
.cmp(&buffer.full_offset_for_anchor(other))
.then_with(|| self_bias.cmp(&other_bias)),
})
}