-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TODO in code: replace copy_nonoverlapping() with read_unaligned() #35
Comments
Thank you! |
Just passing by, but I wonder why is |
The |
Yes, you are correct, I misread:
Maybe it's better to just read a |
Working with |
* Fixes snapview#35 * Replaces snapview/tokio-tungstenite#40 * Gives a good background for snapview/tokio-tungstenite#41
There is a TODO in the code: "replace this with read_unaligned() as it stabilizes"
https://github.com/snapview/tungstenite-rs/blob/3abe419/src/protocol/frame/mask.rs#L31
read_unaligned()
has been stabilized in Rust 1.17Also of interest,
to_bytes()
/from_bytes()
which seems to be the safe equivalent of what the unsafe code is doing here, is going to be stabilized in Rust 1.29, which is the next release.The text was updated successfully, but these errors were encountered: