Shorten endian conversion method names

The consensus on #14917 was that the proposed names were too long.
This commit is contained in:
Brendan Zabarauskas 2014-06-17 15:47:31 -07:00 committed by Alex Crichton
parent 779ca97525
commit cb8ca2dafd
9 changed files with 84 additions and 84 deletions

View file

@ -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())
}