Skip to content

Commit d9053f8

Browse files
committed
Fix build error
1 parent 1e4b95a commit d9053f8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/map.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4636,9 +4636,11 @@ mod test_map {
46364636
left -= 1;
46374637
} else {
46384638
assert!(removed.contains(&(i, 2 * i)), "{} not in {:?}", i, removed);
4639-
let e = m
4640-
.table
4641-
.insert(hash, (i, 2 * i), super::make_hasher(&hasher));
4639+
let e = m.table.insert(
4640+
hash,
4641+
(i, 2 * i),
4642+
super::make_hasher::<usize, _, usize, _>(&hasher),
4643+
);
46424644
it.reflect_insert(&e);
46434645
if let Some(p) = removed.iter().position(|e| e == &(i, 2 * i)) {
46444646
removed.swap_remove(p);

src/rustc_entry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use self::RustcEntry::*;
2-
use crate::map::{Drain, HashMap, IntoIter, Iter, IterMut, make_insert_hash};
2+
use crate::map::{make_insert_hash, Drain, HashMap, IntoIter, Iter, IterMut};
33
use crate::raw::{AllocRef, Bucket, Global, RawTable};
44
use core::fmt::{self, Debug};
55
use core::hash::{BuildHasher, Hash};

0 commit comments

Comments
 (0)