Skip to content

Commit a115a7d

Browse files
author
Timothée Haudebourg
committed
Fix test_into_iter_refresh & make_hash.
1 parent 49f5c8b commit a115a7d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/map.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,8 @@ where
252252

253253
#[cfg(feature = "nightly")]
254254
#[cfg_attr(feature = "inline-more", inline)]
255-
pub(crate) fn make_hash<K, Q, S>(hash_builder: &S, val: &Q) -> u64
255+
pub(crate) fn make_hash<Q, S>(hash_builder: &S, val: &Q) -> u64
256256
where
257-
K: Borrow<Q>,
258257
Q: Hash + ?Sized,
259258
S: BuildHasher,
260259
{
@@ -8255,7 +8254,7 @@ mod test_map {
82558254
let e = map.table.insert(
82568255
hash_value,
82578256
(i, 2 * i),
8258-
super::make_hasher::<usize, _, usize, _>(&hash_builder),
8257+
super::make_hasher::<_, usize, _>(&hash_builder),
82598258
);
82608259
it.reflect_insert(&e);
82618260
if let Some(p) = removed.iter().position(|e| e == &(i, 2 * i)) {

0 commit comments

Comments
 (0)