This rewrites some use cases of unsafe_as casting between integer types. These conversions are not unsafe and don't need unsafe_as. They can be expressed with appropriate to_uX! calls.
The different overloads of Hasher#reduce_num could probably be merged to one or two defs. I'll leave that to a follow-up.
This rewrites some use cases of
unsafe_as
casting between integer types. These conversions are not unsafe and don't needunsafe_as
. They can be expressed with appropriateto_uX!
calls.The different overloads of
Hasher#reduce_num
could probably be merged to one or two defs. I'll leave that to a follow-up.