Skip to content

Commit b24c62d

Browse files
fix ci
1 parent c9e83b6 commit b24c62d

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

rustc-hash/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
#![feature(hasher_prefixfree_extras)]
12+
#![allow(rustc::default_hash_types)]
1213

1314
//! Fast, non-cryptographic hash used by rustc and Firefox.
1415
//!

rustc-hash/src/random_state.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ mod tests {
8383
// `1 / 2.pow(bit_size_of::<usize>())`. Or 1/1.7e19 for 64 bit platforms or 1/4294967295
8484
// for 32 bit platforms. I suppose this is acceptable.
8585
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();
8987

9088
assert_ne!(a.hasher().seed, b.hasher().seed);
9189
}

rustc-hash/src/seeded_state.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ mod tests {
4848
let a = FxHashMapSeed::<&str, u32>::with_hasher(FxSeededState::with_seed(1));
4949
let b = FxHashMapSeed::<&str, u32>::with_hasher(FxSeededState::with_seed(2));
5050

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);
5552
}
5653
}

0 commit comments

Comments
 (0)