-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hasher::write_u*() are expected keep the native endianness
So that write_u32(42) will produce different outputs on big and little endian targets. I couldn't even find that behavior properly documented. But this is what the default trait implementations do. This is absolutely awful. I don't even understand why they chose to do that. Anyway, like a lot of things in Rust, we can just shut up and comply.
- Loading branch information
Showing
2 changed files
with
6 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters