fix sleb serializer
This commit is contained in:
parent
e4532f9e3c
commit
fcfe2dc6e9
5 changed files with 70 additions and 21 deletions
|
|
@ -44,9 +44,7 @@ impl Ord for StringDataItem {
|
|||
|
||||
impl PartialOrd for StringDataItem {
|
||||
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
|
||||
self.data
|
||||
.partial_cmp(&other.data)
|
||||
.map(|ord| ord.then(self.utf16_size.cmp(&other.utf16_size)))
|
||||
Some(self.cmp(other))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue