summary refs log tree commit diff
path: root/src/libcollections/hash/mod.rs
diff options
context:
space:
mode:
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-06-17 15:47:31 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-06-18 17:01:34 -0700
commitcb8ca2dafdbcdedcaeb2573dccd3b3e4a26cae44 (patch)
tree09546de154e03eb8ea3a47865128700ef130c3e0 /src/libcollections/hash/mod.rs
parent779ca97525176bc1d764f1b88906363290fcf851 (diff)
downloadrust-cb8ca2dafdbcdedcaeb2573dccd3b3e4a26cae44.tar.gz
rust-cb8ca2dafdbcdedcaeb2573dccd3b3e4a26cae44.zip
Shorten endian conversion method names
The consensus on #14917 was that the proposed names were too long.
Diffstat (limited to 'src/libcollections/hash/mod.rs')
-rw-r--r--src/libcollections/hash/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/hash/mod.rs b/src/libcollections/hash/mod.rs
index 07c768d0c79..a0c0c9f9735 100644
--- a/src/libcollections/hash/mod.rs
+++ b/src/libcollections/hash/mod.rs
@@ -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())
             }