From: we Date: Sat, 22 Nov 2014 14:03:40 +0000 (+0300) Subject: DSTify free functions in std::hash X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=97d435497c7fce811d39d2cc0882d2b8deaf415f;p=rust.git DSTify free functions in std::hash --- diff --git a/src/libcollections/hash/sip.rs b/src/libcollections/hash/sip.rs index 67ac73bf0b9..ab69a3ad8b8 100644 --- a/src/libcollections/hash/sip.rs +++ b/src/libcollections/hash/sip.rs @@ -251,7 +251,7 @@ fn default() -> SipHasher { /// Hashes a value using the SipHash algorithm. #[inline] -pub fn hash>(value: &T) -> u64 { +pub fn hash>(value: &T) -> u64 { let mut state = SipState::new(); value.hash(&mut state); state.result() @@ -259,7 +259,7 @@ pub fn hash>(value: &T) -> u64 { /// Hashes a value with the SipHash algorithm with the provided keys. #[inline] -pub fn hash_with_keys>(k0: u64, k1: u64, value: &T) -> u64 { +pub fn hash_with_keys>(k0: u64, k1: u64, value: &T) -> u64 { let mut state = SipState::new_with_keys(k0, k1); value.hash(&mut state); state.result()