fix sleb serializer

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2024-02-06 19:37:12 +01:00
parent e4532f9e3c
commit fcfe2dc6e9
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
5 changed files with 70 additions and 21 deletions

View file

@ -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))
}
}