-
Notifications
You must be signed in to change notification settings - Fork 109
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
Rename EndianBuf to EndianSlice #295
Rename EndianBuf to EndianSlice #295
Conversation
To make it easier to upgrade, we export a deprecated type alias.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree it's a better name, but not completely convinced its worth the churn for users of the library (they'll probably have their variables called buf
still).
Needs a couple of changes for rustfmt.
src/endian_slice.rs
Outdated
@@ -0,0 +1,362 @@ | |||
//! Types for compile-time and run-time endianity. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs updating.
src/endian_slice.rs
Outdated
where | ||
Endian: Endianity, | ||
{ | ||
buf: &'input [u8], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth renaming this too?
Did you see that there is a type alias |
Addresses review feedback.
Which |
The stable channel rustfmt-preview from rustc 1.25. |
Huh. Even with
I'm still getting lots of unrelated formatting changes. |
Don't know what's going on then. I'll run it when I rebase my PR.
|
Makes it more clear that it isn't an owning pointer, and clears the way for adding an owned arc/rc/whatever version in #294