File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
branches/try/src/libcollections/hash Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 9146a919b616e39e528e4d7100d16eef52f1f852
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cafe2966770ff377aad6dd9fd808e68055587c58
5
- refs/heads/try: 46bdb455c3087149364d87748cc6c683c4ed130e
5
+ refs/heads/try: 97d435497c7fce811d39d2cc0882d2b8deaf415f
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
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