Shorten endian conversion method names
The consensus on #14917 was that the proposed names were too long.
This commit is contained in:
parent
779ca97525
commit
cb8ca2dafd
9 changed files with 84 additions and 84 deletions
|
|
@ -104,7 +104,7 @@ macro_rules! impl_hash {
|
|||
#[inline]
|
||||
fn hash(&self, state: &mut S) {
|
||||
let a: [u8, ..::core::$ty::BYTES] = unsafe {
|
||||
mem::transmute((*self as $uty).to_little_endian() as $ty)
|
||||
mem::transmute((*self as $uty).to_le() as $ty)
|
||||
};
|
||||
state.write(a.as_slice())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue