File tree 3 files changed +3
-7
lines changed
3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
#![ feature( hasher_prefixfree_extras) ]
12
+ #![ allow( rustc:: default_hash_types) ]
12
13
13
14
//! Fast, non-cryptographic hash used by rustc and Firefox.
14
15
//!
Original file line number Diff line number Diff line change @@ -83,9 +83,7 @@ mod tests {
83
83
// `1 / 2.pow(bit_size_of::<usize>())`. Or 1/1.7e19 for 64 bit platforms or 1/4294967295
84
84
// for 32 bit platforms. I suppose this is acceptable.
85
85
let a = FxHashMapRand :: < & str , u32 > :: default ( ) ;
86
- let b = thread:: spawn ( || FxHashMapRand :: < & str , u32 > :: default ( ) )
87
- . join ( )
88
- . unwrap ( ) ;
86
+ let b = thread:: spawn ( || FxHashMapRand :: < & str , u32 > :: default ( ) ) . join ( ) . unwrap ( ) ;
89
87
90
88
assert_ne ! ( a. hasher( ) . seed, b. hasher( ) . seed) ;
91
89
}
Original file line number Diff line number Diff line change @@ -48,9 +48,6 @@ mod tests {
48
48
let a = FxHashMapSeed :: < & str , u32 > :: with_hasher ( FxSeededState :: with_seed ( 1 ) ) ;
49
49
let b = FxHashMapSeed :: < & str , u32 > :: with_hasher ( FxSeededState :: with_seed ( 2 ) ) ;
50
50
51
- assert_ne ! (
52
- a. hasher( ) . build_hasher( ) . hash,
53
- b. hasher( ) . build_hasher( ) . hash
54
- ) ;
51
+ assert_ne ! ( a. hasher( ) . build_hasher( ) . hash, b. hasher( ) . build_hasher( ) . hash) ;
55
52
}
56
53
}
You can’t perform that action at this time.
0 commit comments