Skip to content

Commit 97d4354

Browse files
committed
DSTify free functions in std::hash
1 parent 46bdb45 commit 97d4354

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcollections/hash/sip.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,15 +251,15 @@ impl Default for SipHasher {
251251

252252
/// Hashes a value using the SipHash algorithm.
253253
#[inline]
254-
pub fn hash<T: Hash<SipState>>(value: &T) -> u64 {
254+
pub fn hash<Sized? T: Hash<SipState>>(value: &T) -> u64 {
255255
let mut state = SipState::new();
256256
value.hash(&mut state);
257257
state.result()
258258
}
259259

260260
/// Hashes a value with the SipHash algorithm with the provided keys.
261261
#[inline]
262-
pub fn hash_with_keys<T: Hash<SipState>>(k0: u64, k1: u64, value: &T) -> u64 {
262+
pub fn hash_with_keys<Sized? T: Hash<SipState>>(k0: u64, k1: u64, value: &T) -> u64 {
263263
let mut state = SipState::new_with_keys(k0, k1);
264264
value.hash(&mut state);
265265
state.result()

0 commit comments

Comments
 (0)