Skip to content

Commit 0b7e111

Browse files
committed
Parametrize missing index implementation
1 parent a96b8df commit 0b7e111

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/map.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,11 +1175,12 @@ where
11751175
}
11761176
}
11771177

1178-
impl<K, Q: ?Sized, V, S> Index<&Q> for HashMap<K, V, S>
1178+
impl<K, Q: ?Sized, V, S, A> Index<&Q> for HashMap<K, V, S, A>
11791179
where
11801180
K: Eq + Hash + Borrow<Q>,
11811181
Q: Eq + Hash,
11821182
S: BuildHasher,
1183+
A: AllocRef + Clone,
11831184
{
11841185
type Output = V;
11851186

0 commit comments

Comments
 (0)