File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -251,15 +251,15 @@ impl Default for SipHasher {
251
251
252
252
/// Hashes a value using the SipHash algorithm.
253
253
#[ inline]
254
- pub fn hash < T : Hash < SipState > > ( value : & T ) -> u64 {
254
+ pub fn hash < Sized ? T : Hash < SipState > > ( value : & T ) -> u64 {
255
255
let mut state = SipState :: new ( ) ;
256
256
value. hash ( & mut state) ;
257
257
state. result ( )
258
258
}
259
259
260
260
/// Hashes a value with the SipHash algorithm with the provided keys.
261
261
#[ 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 {
263
263
let mut state = SipState :: new_with_keys ( k0, k1) ;
264
264
value. hash ( & mut state) ;
265
265
state. result ( )
You can’t perform that action at this time.
0 commit comments