OK, so I saw this while working on #69 and couldn't ignore it. You're doing manual bit shifting when you could be using u32::from_be_bytes. I'm not aware of any reason for this, so I swapped it out and it works just fine.
from_be_bytes has been const-stable since Rust 1.44.0. (Admittedly this is newer than allsorts itself.)
OK, so I saw this while working on #69 and couldn't ignore it. You're doing manual bit shifting when you could be using
u32::from_be_bytes
. I'm not aware of any reason for this, so I swapped it out and it works just fine.from_be_bytes
has been const-stable since Rust 1.44.0. (Admittedly this is newer than allsorts itself.)