:wave: Hello @SecSamDev , I wanted to open a small issue I recently encountered while using parts of this library. Specifically the huffman decompression code.
I am using the decompression code to help decompress Prefetch files.
Recently the sorting algorithm in Rust trait Ord changed in Rust version 1.81, as mentioned in the release notes.
Code that uses the Ord and PartialOrd traits now need to implement a total order sort otherwise Rust will panic with the message:
user-provided comparison function does not correctly implement a total order.
:wave: Hello @SecSamDev , I wanted to open a small issue I recently encountered while using parts of this library. Specifically the huffman decompression code.
I am using the decompression code to help decompress Prefetch files.
Recently the sorting algorithm in Rust trait
Ord
changed in Rust version 1.81, as mentioned in the release notes.Code that uses the
Ord
andPartialOrd
traits now need to implement atotal order
sort otherwise Rust will panic with the message:user-provided comparison function does not correctly implement a total order
.I was able to review and believe the issue is at:
It looks like starting in version 1.81 both greater and less than comparisons need to be used. The code below no longer panics.
I can open a PR for the fix if you would like, otherwise will defer to you if you want to fix.
Thanks again for the awesome library!